Truncate File Name

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

Moderator: Mr_Noodle

Truncate File Name Sun Jan 18, 2015 10:30 pm • by waxwing
Is there a way to use Hazel to truncate a file name to skip the first 10 characters? I'm downloading files from a school web-site. As I do it, the site adds 10 seemingly random characters to the from of the filename. I'd like to remove them.

Thanks.
waxwing
 
Posts: 6
Joined: Wed Feb 02, 2011 10:20 am

Re: Truncate File Name Mon Jan 19, 2015 3:06 pm • by Mr_Noodle
You can use pattern matching/custom attributes for this. Read the help on "match patterns". Basically, create a pattern to match 10 characters and then have a custom attribute match the rest of the name. Then in the rename action, you can use that custom attribute (which should be everything but the first 10 characters).
Mr_Noodle
Site Admin
 
Posts: 11272
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron