is it possible to tell hazel to stop if a condition occurs?

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

Moderator: Mr_Noodle

Hi, I'm able to instruct hazel to get the invoice number inside a file.pdf :) unfortunately hazel, who's searching for numbers, get, sometimes, even the near/sequent date of the invoice. cause the date of the invoice has ever the same pattern (01-01-19) is there a way to stop hazel just before it reach the date of the invoice?

ciao from italy
-marco
bellamerighi
 
Posts: 10
Joined: Sat Dec 08, 2018 5:57 am

You can add the date to the pattern to account for it. Unless you have two dates in which case you'll have to do something else.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:You can add the date to the pattern to account for it. Unless you have two dates in which case you'll have to do something else.


There is just one date, but I haven't understood your tip :(
bellamerighi
 
Posts: 10
Joined: Sat Dec 08, 2018 5:57 am

all invoices have the same template, of course the vendors, invoice numbers and date changes ;)

Image

and this is my hazel setup

Image
bellamerighi
 
Posts: 10
Joined: Sat Dec 08, 2018 5:57 am

Use the preview feature so you can view the contents of the file as Hazel sees it.

As for my tip, just as you use the TD01 preceding the text you want, you can also use the date afterwards in the pattern to bracket it in the pattern.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Mr_Noodle wrote:Use the preview feature so you can view the contents of the file as Hazel sees it.

As for my tip, just as you use the TD01 preceding the text you want, you can also use the date afterwards in the pattern to bracket it in the pattern.


can't figure how to use the date as a stop for hazel. could you give me a more detailed explanation? maybe a picture that I could understand better than english.
thank you
bellamerighi
 
Posts: 10
Joined: Sat Dec 08, 2018 5:57 am

Search the support page for date matching. There are links to various articles and videos there.
Mr_Noodle
Site Admin
 
Posts: 11235
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support