Forum Archive

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

BobKuederle

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

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.

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.

BobKuederle

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.

johnquirke

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

@johnquirke said:

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

Try escaping the slash: iCloud%2FDateandTime

cvp

@johnquirke I think it is

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

Édit: tested ok