Page 1 of 1

Truncate File Name

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

Re: Truncate File Name

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