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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -