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.


    ?action=run?root=icloud - not working?

    Pythonista
    5
    7
    4341
    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.
    • BobKuederle
      BobKuederle last edited by

      These are working for me:

      • pythonista3://myscript.py?action=run - runs the script from the iPad storage
      • pythonista3://myscript.py?root=icloud - opens the script in editor from iCloud storage

      But this does not:

      • pythonista3://myscript.py?action=run?root=iCloud - opens the script for editing from iPad storage

      Also, the root=icloud functionality seems to have been removed from the website documentation but remains in the in-app documentation.

      Did I miss some change that removed the ability to use the run and root parameters together?

      Thanks for the help.

      Bob

      BobKuederle 1 Reply Last reply Reply Quote 0
      • BobKuederle
        BobKuederle @BobKuederle last edited by

        I forgot to mention I was calling the URL scheme from Workflow.app. I get the same results from typing the urls into the Safari browser.

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

          You’ll want to use this instead:

          pythonista3://myscript.py?action=run&root=iCloud
          

          Note the ampersand on the second parameter instead of the question mark.

          1 Reply Last reply Reply Quote 2
          • BobKuederle
            BobKuederle last edited by

            Thank you! I was suspicious of my use of question marks and ampersands. Eventually my eyes went crossed after extended struggling and cursing. Sometimes it’s good to walk away.

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

              This is great. Solution works perfectly. However, how does one extend it to work with subfolders? I may have typed things wrong but when I simply put in:

              pythonista3://myscript.py?DateandTimeSucc=run&root=iCloud/DateandTime

              it didn't work

              Any thoughts gratefully received.

              mikael cvp 2 Replies Last reply Reply Quote 0
              • mikael
                mikael @johnquirke last edited by

                @johnquirke said:

                pythonista3://myscript.py?DateandTimeSucc=run&root=iCloud/DateandTime

                Try escaping the slash: iCloud%2FDateandTime

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

                  @johnquirke I think it is

                  pythonista3://DateandTime/myscript.py?action=run&root=iCloud
                  

                  Édit: tested ok

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