Pythonista script included in Workflow
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.
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)
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.
If you delete the following two lines, the script works.
if DOCUMENTS.startswith("/private"): DOCUMENTS = DOCUMENTS[len("/private"):]