Sharing extension with arguments does not start
Does anyone have an sharing extension running successfully which receives arguments at the call? I don't even get the simplest program running which only contains
print 'hello'. When I leave the shortcut parameter "Arguments" blank the program runs. When I set the arguments to any string or number the program is not called.
@skrohmer do you have an example of your code?
Yes, see above:
print 'hello';-) You don't really need code, one line printing some text (or sys.argv) is enough. Go to Settings / Share Extension Shortcuts -> create a new shortcut -> set Arguments to any value. After that run the extension by sharing any file. That's it.
Sorry... I'm a little tired !
It works for me though. Prints hello.
Did you try using the apex module?
import appex if appex.is_running_extension(): #share url from safari print(appex.get_url())
Can reproduce: https://github.com/omz/Pythonista-Issues/issues/87
Wow... I just need to sleep. Sorry guys. I now see the problem too...!