Is there a way to trim off the first 3 character of multiple file names? (or last 3 characters)
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
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. |
|||||||||||||||
|
|
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. Good luck. |
|||
|
|

