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?
-
These are working for me:
pythonista3://myscript.py?action=run
- runs the script from the iPad storagepythonista3://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
-
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.
-
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.
-
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.
-
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.
-
@johnquirke said:
pythonista3://myscript.py?DateandTimeSucc=run&root=iCloud/DateandTime
Try escaping the slash:
iCloud%2FDateandTime
-
@johnquirke I think it is
pythonista3://DateandTime/myscript.py?action=run&root=iCloud
Édit: tested ok