Use Case: flexible- run indigo IOM commands from iPhone
Requirements: Shortcuts, SSH server enabled
'/Library/Application Support/Perceptive Automation/Indigo 7.2/IndigoPluginHost.app/Contents/MacOS/IndigoPluginHost' -x /SomeFolder/indigo_script.py "dictated text"
Nov 12, 2018 9:59:51 AM
Script Error indigo-example.py: 'module' object has no attribute 'argv'
Script Error Exception Traceback (most recent call shown last):
indigo-example.py, line 14, at top level
indigo-example.py, line 8, in main
AttributeError: 'module' object has no attribute 'argv'
anyone wrote:Thanks Jay, it felt like I was close.
I'm still stuck though. How would I access the argument within the python program? Below is the error I received when attempting to retrieve it with the "sys.argv" command. Should I import something other than sys to do that?
- Code: Select all
Nov 12, 2018 9:59:51 AM
Script Error indigo-example.py: 'module' object has no attribute 'argv'
Script Error Exception Traceback (most recent call shown last):
indigo-example.py, line 14, at top level
indigo-example.py, line 8, in main
AttributeError: 'module' object has no attribute 'argv'
#!/usr/bin/env python
import sys
def main():
words = " ".join(sys.argv)
indigo.server.log(words)
if __name__ == "__main__":
main()
/usr/local/indigo/indigohost -m indigo_attachments. log "Here is the message"
from {path} import {method}
return {method}({args})
Users browsing this forum: No registered users and 2 guests