Trimming characters from filename help

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Trimming characters from filename help Tue Aug 02, 2016 6:07 am • by benbronstudio
I'm trying to execute a pretty simple renaming procedure, but am unable to do so with an automator workflow and my scripting knowledge is inadequate. The equivalent that I'm trying to execute in NameMangler is to:
'remove 2 characters starting at index 1 - counting from start'
and
'remove 2 characters starting at index 2 - counting from end'
Any assistance would be appreciated, no preferences; Applescript, Java and Shell are all fine.
benbronstudio
 
Posts: 2
Joined: Tue Feb 03, 2015 1:56 pm

Re: Trimming characters from filename help Tue Aug 02, 2016 11:54 am • by Mr_Noodle
Search the help for "match patterns". Depending, they might be able to do what you want. You basically want to create custom attributes for the part before and after the section you are removing and then recombine them in the Rename action.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron