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.
Can't make shortcut icons.
-
@cvp, issue is the same with the App Store version. Thanks for pointing out the workround.
-
The problem was solved. I was confused because the system has changed quite a lot due to changes in the system.
-
@cvp I thought your solution was good but when the shortcut is run it cannot find the script. I've tried putting the script in various of the Pythonista folders, iCloud, site packages etc.
I presume I need to give the shortcut the full path to the script, and I've tried a few variants but simply cannot get the right path to make the shortcut fire the script.
Ideally I would like to have the script "test.py" in the top iCloud folder, and provide the path to this in the shortcut
Any clues?
-
@generic shortcut "execute Pythonista script" does not work for iCloud folder of Pythonista
That works, but non iCloud and without arguments
-
Not sure if this helps anyone but also since running this script does not work at the moment. This workaround does work. If you make a 2 action shortcut with:
pythonista3://iCloud/shortcutScript.py?action=run | <open url>
it should work. You can get get your script URL with this:
import _pythonista, os def this_url(): _script = os.path.realpath(__file__) script_url = _pythonista.make_url(_script) return script_url
-
@couplelongnecks Pythonista doc says
Run a script from your library: Use pythonista://MyScript.py?action=run for running a script that is in your library. By default, the script path is relative to Pythonista’s local documents folder. Add ?root=icloud to make the path relative to Pythonista’s iCloud folder instead.
-
@cvp This works for you?
I havent been able to get that working. If its in the docs its probably user error on my part.
Excuse the ignorance but whats the difference/benefit to this method? -
@couplelongnecks you're right, it does not work, sorry.
But it seems that pythonista3://iCloud/shortcutScript.py?action=run does not work too...But this works
pythonista3://shortcutScript.py?action=run&root=icloud
-
@cvp
Awesome! That works for me!
The link I posted must have been a fluke, yours must be the robust way. So will implement! :) -
This post is deleted! -
This post is deleted! -
This post is deleted!