Page 1 of 1

Trimming characters from filename help

PostPosted: 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.

Re: Trimming characters from filename help

PostPosted: 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.