• Casper_30

    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.

    Thanks again

    posted in Pythonista read more
  • Casper_30

    Hi all,

    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[1] and sys.argv[2].

    When printed Pythonista shows that sys.argv[1] is var1 and sys.argv[2] 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.

    posted in Pythonista read more

Internal error.

Oops! Looks like something went wrong!