omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    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.


    Shortcut argument passing

    Pythonista
    2
    5
    2095
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ihf
      ihf last edited by

      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?

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @ihf last edited by

        @ihf known problem, I think, see here

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp last edited by cvp

          And here
          and Pythonista issue

          1 Reply Last reply Reply Quote 0
          • ihf
            ihf last edited by

            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 1 Reply Last reply Reply Quote 0
            • cvp
              cvp @ihf last edited by cvp

              @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.»

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors