Variable name, not value, being passed to Pythonista via iOS Shortcut url action
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.
@Casper_30 for me, it works, sure you use the variable name var1?
The problem seems to be in your shortcut, not in Pythonista
Not the same as
Thanks for the pointers here @cvp
You’re completely right, the problem was my specification of var1 in the shortcut - rookie error on my part! Your screenshots are very clear and highlighted the problem.