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.
Is it possible to run external file scripts from Shortcuts?
-
This post is deleted! -
You could, via Shortcuts, launch a little Pythonista script running in Python2
and launching it-self your external file script in Pythonista3Tested and ok:
#!python2 from objc_util import * dir = '/private/var/mobile/Library/Mobile Documents/com~apple~CloudDocs/.../xxx.py' arg = '' #dir = os.path.expanduser('~/Documents/'+app) I3=ObjCClass('PYK3Interpreter').sharedInterpreter() # run a script like in wrench menu (path, args, reset env yes/no) I3.runScriptAtPath_argv_resetEnvironment_(dir, [arg], True)
-
I'm (almost) sure you could even pass the external script url as argument of little script, not tried
-
This post is deleted! -
This post is deleted!