Creating Home Screen Icons
Version 1.2 introduces the pythonista:// URL scheme for opening and running scripts in your library. Using Safari web clips (home screen bookmarks), you can use this to create dedicated icons for your scripts on the home screen.
As of now, this is pretty much a proof of concept, there's no way to select different icons, and the UI is pretty sparse, but if you like experiments, open this page on a device that has Pythonista installed:
yep it is broken on iOS 7
: ( Any chance this can get fixed?
I've looked into this, and it seems that it's no longer possible to make homescreen shortcuts that open non-web URLs (e.g.
pythonista://...) on iOS 7, and I haven't found any workaround so far. I also tried creating a configuration profile with an embedded web clip, but that doesn't work either.
I did it using a webclip in a profile (despite the fact that <a href="http://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProfileRef/iPhoneConfigurationProfileRef.pdf">the documentation</a> says the URL needs to start with http or https).
... <key>PayloadType</key> <string>com.apple.webClip.managed</string> <key>PayloadUUID</key> <string>70F36BDC-51AC-448E-B945-06837A970E2E</string> <key>PayloadVersion</key> <integer>1</integer> <key>URL</key> <string>pythonista://Domotica?action=run</string> ...
It seems that this has been fixed in iOS 7.0.3, see also my blog post on the topic.
My scripts are organized into folders. The shortcut making page just asks for the script name, which I supplied, but it says it couldn't find that script. I tried the path from
The root directory (like "Utils/myscript") but it said, "can't find script "Utils.py".
How do you create an icon for scripts organized in folders?
If I just type it into the web browser I can get it to work, though.
This post is deleted!last edited by smithcamilla
Realise this is old but for anyone learning - I was struggling with this also - its very hard to see a long path on the iphone (my problem!) but mine worked by starting with a "./" so in your case the path in the safari page would be "./Utils/myscript.py" . The icon to make the bookmark on the home page is the share button.
@hvmhvm The link doesn't work anymore, but I've got the Apple Configurator tool on my Mac as well. Thanks to your hint, I used it to install a WebClip payload to invoke a Pythonista script and it works like a champ. I can also install various icons and whatnot.
For me, this is a better solution.
Has anyone updated a version of OMZ's web-page that will allow one to upload icons? That's the only thing really missing.
This post is deleted!last edited by