Forum Archive

Accessing iCloud folder = File not Found

pyfonista

Hi,
I'm running a script in iOS terminal using the following command:

uiopen pythonista://top_stories/top_stories?action=run&root=icloud

Pythonista opens and says this error message:

Not Found
The file 'top_stories/top_stories' could not be found'

The script I want to run is located here within Pythonista:

 iCloud/top_stories/top_stories.py

It also doesn't work if I move top_stories.py to iCloud root folder:

uiopen pythonista://top_stories?action=run&root=icloud

My iCloud folder on my phone:
https://i.imgur.com/ggJQsCwm.jpg

I'm not sure why my script is not being found. I'm launching Pythonista from a terminal application (jailbroken).
Any ideas?

(local storage works, just not iCloud, how come?)

cvp

@pyfonista try with .py

pythonista://top_stories/top_stories.py?root=icloud&action=run

.py needed in the new version, not in the old one, don't ask me why 😀

pyfonista
uiopen pythonista://top_stories.py?action=run&root=icloud

'Not Found
The file 'top_stories.py' could not be found'

iCloud folder structure:
https://i.imgur.com/ggJQsCwm.jpg

I'm still lost!

edit:

If I run the command this way around:

uiopen pythonista://top_stories.py?root=icloud&action=run

It opens the top_stories.py for editing but does not run it.

Maybe Actviator.app is not parsing the '&' character correctly (I'm trying to launch Pythonista from Activator.app -> run command)

JonB

Try pasting the link into safari to see if it is an app activator issue..

cvp

@pyfonista just an idea, probably silly, try %26 instead &