I’ve been working on my first Pythonista script and the script itself is working great (yay!), I can call a shortcut from it (thanks to help from this forum Can I call a shortcut from pythonista? ), but I also want to call the script from a Shortcut and that is not working.
I have the Pythonista script in iCloud because it’s reading from and writing to iCloud files in the directory with it (and it works when run from the Pythonista app so Pythonista is happy with it there), but if I use the “Run Script” command in Shortcuts, Shortcuts it tells me it can’t find the script. If I create a hello world in the “This iPhone” directory instead, Shortcuts can find and run it with no problem.
So, I need to figure out how to do one of two things, either:
1.) tell Shortcuts how to find my script in iCloud (I’ve tried several variations on the path to the file, but no luck yet)
or
2.) move my pythonista script to “This iPhone”, and figure out what path to give the script to reference back to the iCloud files it wants to read and write with. This is definitely not the preferred option since the iCloud directory the script is currently in is under git control, and I’m not sure how to put a “This iPhone” directory under git control.