Requirements: Shortcuts, SSH server enabled


Code: Select all
'/Library/Application Support/Perceptive Automation/Indigo 7.2/IndigoPluginHost.app/Contents/MacOS/IndigoPluginHost' -x /SomeFolder/indigo_script.py "dictated text"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'
Post the actual code you're using. Guessing doesn't help anyone.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'
Code: Select all
#!/usr/bin/env python
import sys
def main():
words = " ".join(sys.argv)
indigo.server.log(words)
if __name__ == "__main__":
main()
Code: Select all
/usr/local/indigo/indigohost -m indigo_attachments. log "Here is the message"Code: Select all
from {path} import {method}
return {method}({args})