Renaming files

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

Moderator: Mr_Noodle

Renaming files Tue Jun 23, 2015 10:38 am • by comiquaze
Hi!

I just got onboard with this amazing software, but I have a few questions concerning renaming files.

I want to rename using this pattern:

"Containing Folder Name" "Month" "Year" so it should show up like this: Abc June 15.pdf.

However, the results are like this: june15.pdf

Any ideas?
comiquaze
 
Posts: 5
Joined: Tue Jun 23, 2015 10:29 am

Re: Renaming files Tue Jun 23, 2015 11:08 am • by Mr_Noodle
Where is "Containing Folder Name" coming from?
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Renaming files Tue Jun 23, 2015 5:44 pm • by comiquaze
It's coming from the "other..." field in "Rename with pattern". I might have wrong English translation, my Mac is in French.
comiquaze
 
Posts: 5
Joined: Tue Jun 23, 2015 10:29 am

Re: Renaming files Wed Jun 24, 2015 12:46 pm • by Mr_Noodle
Then that is supplied by Spotlight but apparently it's blank. It might be better to capture it yourself. Search for "match patterns" in the help. What you want to do is grab the enclosing folder name yourself using a condition like:
Code: Select all
   If (all) are met
       If (all) are met for (the enclosing folder)
           Name matches (•enclosing folder name)
       ...


where (•enclosing folder name) has the pattern "anything". To get the nested condition, hold down option while clicking + to create a new condition. That will capture the folder name into the attribute you defined which you can then use in your rename pattern.
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Renaming files Thu Jun 25, 2015 8:48 am • by comiquaze
Thanks. This goes in the conditions? Sorry to sound confounded, but scripting and conditons are utterly chinese for me.

So what I want to do is to download a .pdf, Hazel will see it, recognize the file using a condition, move it to it's proper place and then would rename it to the right pattern.
comiquaze
 
Posts: 5
Joined: Tue Jun 23, 2015 10:29 am

Re: Renaming files Thu Jun 25, 2015 11:56 am • by Mr_Noodle
Yes, those are conditions. If you still aren't clear on how rules work, I suggest setting up a test folder with test files and playing with different rules to get a feel for them. Also, make heavy use of the preview function (the "eye" button).
Mr_Noodle
Site Admin
 
Posts: 11868
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Renaming files Thu Jun 25, 2015 12:44 pm • by comiquaze
What confuses me is you suggested me a script and I can also use conditions?

:roll:
comiquaze
 
Posts: 5
Joined: Tue Jun 23, 2015 10:29 am

Re: Renaming files Thu Jun 25, 2015 10:27 pm • by comiquaze
A friend helped me, everything works.

The software does what it says on the tin.

8)
comiquaze
 
Posts: 5
Joined: Tue Jun 23, 2015 10:29 am


Return to Support