Pythonista script included in Workflow
JMM last edited by
Hi, I am completely new to Pythonista and can’t find the basic information to start a script that would rename a file and save it.
This script is then to be run in Workflow. Can anyone give me a hand ? Thanks in advance.
my4paws last edited by
I’m also new to python and reading through the forum here looking for help building my first script. I’ve yet to ask a question here. That no one has given you an answer in 21 days for what is I’m sure pretty basic stuff for most users of this forum doesn’t bode well for us beginners does it. :(
But anyway... you can achieve your aim within just workflow quite easily with the following sequence of actions.
Save file ( with new name)
shaun-h last edited by
I did a quick search on this forum and found this (I haven't tried it) https://forum.omz-software.com/topic/1491/simple-file-rename-script
Hopefully it points you in the right direction.
enceladus last edited by
If you delete the following two lines, the script works.
if DOCUMENTS.startswith("/private"): DOCUMENTS = DOCUMENTS[len("/private"):]