osx - rename batch files mac remove first word -
i trying rename batch of files on mac.
the files like
122-test-12.jpg
i need output file as
test-12.jpg
i been trying use automator dont know doing.
you can use applescript:
set myfiles (choose file multiple selections allowed) repeat afile in myfiles set afile contents of afile tell application "finder" set filename afile's name set firstdash offset of "-" in filename set afile's name text (firstdash + 1) through -1 of filename end tell end repeat
Comments
Post a Comment