Wildcards

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

Moderator: Mr_Noodle

Wildcards Mon Apr 09, 2012 12:38 pm • by caspianshaun
i read the previous posts regarding wildcards and they weren't of much help...

our corporate scanner by default labels PDFs in the following format (as an example)...
2012030504351.pdf, 2012030504352.pdf, et cetera...

so it can be broken down into ?????????????.pdf...
i routinely grab them off the remote share and throw onto my desktop...
i want hazel to automatically throw them into a folder for further processing

is there any way to get hazel to take grab any file with 13 wildcards with a pdf extension?
i am currently using the following rule:

extension contains pdf
name starts with 201
caspianshaun
 
Posts: 2
Joined: Mon Apr 09, 2012 11:36 am

Re: Wildcards Mon Apr 09, 2012 12:41 pm • by Mr_Noodle
Look up "match patterns" in the help.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Wildcards Mon Apr 09, 2012 2:11 pm • by a_freyer
Assuming a file like 2012030504351.pdf is named like our scanner, I'd use Custom (•) to create several fields for sorting into subfolders:

Image


Code: Select all
Custom 1, named YEAR is (1)(1)(1)(1)
Custom 2, named MONTH is (1)(1)
Custom 3, named DAY is (1)(1)
Custom 4, named TIME is (1)(1)(1)(1)
Custom 5, named NUMBER is (...)


Then, the matching pattern is this:

Code: Select all
(YEAR •)(MONTH •)(DAY •)(TIME •)(NUMBER •)


Then, if you'd like you can:

Code: Select all
Sort into Subfolder with pattern (YEAR •)/(MONTH •)/(DAY •)
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado

Re: Wildcards Mon Apr 09, 2012 2:22 pm • by caspianshaun
afreyer, thank you so much.
that was very helpful
caspianshaun
 
Posts: 2
Joined: Mon Apr 09, 2012 11:36 am

Re: Wildcards Mon Apr 09, 2012 2:31 pm • by a_freyer
caspianshaun wrote:afreyer, thank you so much.
that was very helpful



Glad to help - let me know if there are any other questions!

Matching is one of the most powerful features of Hazel; I use it in dozens of rules. I suggest experimenting around with it to learn its true power.
a_freyer
 
Posts: 631
Joined: Tue Sep 30, 2008 9:21 am
Location: Colorado


Return to Support