Is there a way to trim off the first 3 character of multiple file names? (or last 3 characters)
This code will do it for you:
Note that stripping the last three will get rid of the extension. If that isn't what you want to happen, let me know in a comment.
|show 1 more comment|
Here's a shorter script:
Renaming files is often easier in the shell though:
Parameter expansion is documented in
Here is an Automator Workflow as a Service that will do what you want it to do.
All you have to do is load this workflow, and duplicate it to a Service and call the Service "Trim First 3" or something, then save it.
Then select a folder and select this service and it will take all files in the folder and trim the first 3 characters of the file name.