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.
Add to homescreen
-
In Safari, it is possible to add shortcuts to the iOS homescreen. These shortcuts Open a specific web Page. Is it possible to add a shortcut that opens a Pythonista Script?
Georg
-
Quickly typed into the search bar. Possible result: https://forum.omz-software.com/topic/1358/pythonista-homescreen-icon-customizable-icons-for-your-scripts
-
I should have searched first😔
Would it be possible to make this a Standard Pythonista Feature? It Appears that Other Apps such as Workflow https://workflow.is/ have it, and it Appears reasonably simple to implement...
Georg -
I believe Apple wouldn't allow @omz to do this since it executes code…You could always add Pythonista actions to a workflow in the meantime ;)
-
Note: Workflow has a Today widget now.
But I suppose there's a difference between an orchestrator and a code executor...
-
-
Now here is the weird thing: using the Workflow App, I can run a Pythonista script as part of a Workflow. A Workflow can be run from within the App, from a Share sheet, from the home Screen, from the today Widget. As a consequence, I can run Pythonista scripts in These Ways as well.
If Apple Allows this between Apps, i Would think that they permitted it within a Single App as well. Of Course i cannot read Apple's mind...who can 😒?
Georg -
A pythonista script can be run from the share sheet, from the app, and from the home screen. @omz could put in a today widget if he wanted, but I honestly don't see much use for it.
-
Also don't forget as a url from within a notification.
-
Like I say, Workflow put in a Today widget. Might not be desperately useful on an iPhone but being able to launch from all the usual places puts Editorial and Pythonista on an even footing with other orchestrators / launchers.
Not to have one might be "not taking a step forwards when everyone else has".
-
@JonB - how can it be run from a notification? Example?
-
@Webmaster4o , pretty sure he is referring to the notification module.
notification.schedule(message[, delay, sound_name, action_url])
Schedule a notification with the given message text.The return value is a dict that can be used as the notification parameter for the cancel() function.
delay is the time interval in seconds until the notification is delivered.
sound_name can be any of the bundled sound effects that are also available via the sound module. Use an empty string to schedule a silent notification. Using an non-existing sound effect (e.g. ‘default’) will result in the system’s standard alert sound being played.
With the action_url parameter, you can specify a URL that is opened when the notification is activated (e.g. by tapping it in Notification Center). Which app is used to open the URL depends on the URL’s scheme, e.g. for http: URLs, Safari is used.
-
Wow! Didin't know it was possible to have a notification open a URL! I thought notifications all pointed to the app from which they were sent! That's very useful.
-
Yes, I could write a novel about the things I have missed here :)
-
yes, sadly you still have to press "ok". but you can use the pythonista:// url scheme to run a script, with arguments.
I used this for a while to run a script that logged into my library, web scraped the list of upcoming renewals, then renewed all books that were due within 3 days, then set a new notification based on the next books due (which launched the renew script).