I recently had the need to use one of the old shortcuts I had a good few years ago. However when I ran it I was getting an argument in Pythonista about the INdex being out of range, basically it was not getting receiving the auguments. When passing the variables within Pythonista it worked perfectly.
From a quick google it seemed like this broke with iOS 13, shows how long it’s been since I needed to use it.
Luckily you can still pass arguments to the scripts and continue to work they way it should. Instead of using run script with pythonista, you have to use the URL function and then open the url.
So now I have two lines in the shortcut, it looks like
URL
pythonista2://syllabus_difference.py?action=run&args=TEXT
Safari
Open URL
So from above, syllabus_difference.py is my python script in Pythonista, and the argument to pass is from the text box that is in step above in the Workflow..
Hope this helps you out.