I’m writing a shortcut which runs a Pythonista script and has arguments. I would prefer not to use the clipboard to send the arguments but I will use it to receive the results. When I execute a script with an argument using the Pythonista action in Shortcuts, My script gives “List out of range“ when it sees sys.arg[1]
What have I overlooked?
Forum Archive
Shortcut argument passing
ihf
May 31, 2020 - 21:54
cvp
May 31, 2020 - 22:04
@ihf known problem, I think, see here
cvp
May 31, 2020 - 22:07
And here
and Pythonista issue
ihf
May 31, 2020 - 22:40
Thanks. I suppose I can either put the arguments in a URL or use the clipboard in both directions.
I guess Ole is no longer maintaining his wonderful creation.
cvp
Jun 01, 2020 - 08:51
@ihf I think (and hope) he will.
See "What's New in Pythonista" page in the documentation, where @omz says «If you’ve been using the beta, you may notice that the “Siri Shortcuts” feature is missing from this release. It’s still planned, but the beta implementation was based on already-outdated iOS 12 APIs, and I want to take a little more time for a version that makes use of new iOS 13 features like custom parameters. Thanks for your patience! There’s still a lot of new stuff to discover in this update.»