omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Casper_30

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    Casper_30

    @Casper_30

    0
    Reputation
    232
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Casper_30 Unfollow Follow

    Latest posts made by Casper_30

    • RE: Variable name, not value, being passed to Pythonista via iOS Shortcut url action

      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
      Casper_30
      Casper_30
    • Variable name, not value, being passed to Pythonista via iOS Shortcut url action

      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:

      pythonista3://variable_problem?action=run&root=icloud&argv=var1&argv=var2

      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
      Casper_30
      Casper_30