Page 1 of 1

Just Installed Newbie ?: Enclose 4 digit Year in Parentheses

PostPosted: Wed Oct 12, 2016 1:29 pm
by chaseholden
I just installed Hazel and am a brand newbie...
How would I rename a filename to enclose a 4 digit Year in Parentheses?

Example:

Before: Filename Goes Here 2011.ext
After: Filename Goes Here (2011).ext

I've searched thru Forum for anything similar but can't find answer. Forgive me if I missed something but it's looking like answer may involve something called tokens, strings but I'm utterly confused.

Re: Just Installed Newbie ?: Enclose 4 digit Year in Parenth

PostPosted: Thu Oct 13, 2016 10:56 am
by Mr_Noodle
Look up "match patterns" in the help. You'll need to create custom attributes to match the different parts, then reassemble them in the Rename action with the parentheses added.

Re: Just Installed Newbie ?: Enclose 4 digit Year in Parenth

PostPosted: Mon Oct 17, 2016 11:13 pm
by chaseholden
Thanks for your reply, Mr. Noodle. However, "the help" does not function if you're referring to the Hazel Application panel's Help which is accessible from Help menu or help button. (See screenshot)

It simply displays:
"The selected topic is currently unavailable."
The topic you were trying to view could not be found."

Image

I need Hazel to do two things:
    1. remove trailing space in a filename if one exists, excluding extension. (1968) .jpg ==> (1968).jpg
    2. enclose any 4 digit year within parentheses 1969 ==> (1969)

If you will not help me, will you just point me online to your website's tutorial help?

Re: Just Installed Newbie ?: Enclose 4 digit Year in Parenth

PostPosted: Tue Oct 18, 2016 11:27 am
by Mr_Noodle
What language is your system set to? Are your running Sierra? Not sure why the help isn't showing but unfortunately, there's no copy of it online.

Typing up the whole article here is a bit too much but try the following to access the help:

- Find where Hazel.prefPane is located. It should be in Library/PreferencePanes either under your home folder or at the top of your drive. You can try using Spotlight to help locate it.
- Select it, right click and do "Show package contents"
- Navigate to "Contents/Resources/en.lproj/Hazel Help/"
- Open "editingMatchPatterns.html" which should be the article which will help you out here.

Re: Just Installed Newbie ?: Enclose 4 digit Year in Parenth

PostPosted: Tue Oct 18, 2016 1:58 pm
by Mr_Noodle
Actually, I've figured out the issue with the help being broken. If you are interested in running a fixed build, email support and I'll send you a link to download it.

Re: Just Installed Newbie ?: Enclose 4 digit Year in Parenth

PostPosted: Fri Oct 21, 2016 9:38 pm
by chaseholden
Thank you, Mr. Noodle. Your instructions were effective and helpful and I'm looking at the help now and have bookmarked it in browser. Found the answers I was looking for and was able to establish a working process.
Yes, I am running Sierra 10.12.1.5 (beta). I'll email you for an updated app. Thanks again.

Re: Just Installed Newbie ?: Enclose 4 digit Year in Parenth

PostPosted: Mon Oct 24, 2016 10:54 am
by Mr_Noodle
Also replied in email but in case you didn't see it, I've released 4.0.7 which should fix the help, among other things.