I’ve just started working with iOS Shortcuts and have put a small workflow together which should be passing variables from the Shortcut script to Pythonista.
For example, the Shortcut workflow asks for two inputs and stores as var1 and var2 respectively, using the add to variable action. These variables are included as argvs in the Pythonista url as:
The variable_problem.py script is used fir troubleshooting and simply prints sys.argv and sys.argv.
When printed Pythonista shows that sys.argv is var1 and sys.argv is var2 and not the values that were submitted during the input stage
Unfortunately it seems that the url code is simply passing the variable name, rather than the value.
Has anyone found a workaround for this problem?
Thanks in advance.