Notification only if a move did NOT work

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

Moderator: Mr_Noodle

Notification only if a move did NOT work Sun Mar 11, 2018 3:19 pm • by halloleo
I am building a set of rules filing email attachments (invoices from different suppliers) into folders. I save the attachments to one FileMe folder which I watch with Hazel. I check for file type and for the email address (plus other infos) in the "Where From" key and then file the PDFs into different destination folder.

So far so good. Sometimes though I rename or trash destination folders, so the rule cannot move the item. At the moment I get, I think, the first time the move works and the first time it fails a banner notification, but I like to get an alert every time it fails, preferably as bigger alert (like a dialog box).

How can I achieve this?
halloleo
 
Posts: 59
Joined: Thu Apr 27, 2017 10:10 pm

Re: Notification only if a move did NOT work Mon Mar 12, 2018 11:08 am • by Mr_Noodle
You'll need to use AppleScript if you want a special UI to appear in this case.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Notification only if a move did NOT work Mon Mar 12, 2018 8:59 pm • by halloleo
Mr_Noodle wrote:You'll need to use AppleScript if you want a special UI to appear in this case.


Makes sense. Thanks.

For this how can I check in Hazel whether the file move worked or failed and then depending on this call a "display dialog" applescript?
halloleo
 
Posts: 59
Joined: Thu Apr 27, 2017 10:10 pm

Re: Notification only if a move did NOT work Tue Mar 13, 2018 11:32 am • by Mr_Noodle
If an action fails, subsequent actions will not be run so having the script after the move action should be sufficient.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Notification only if a move did NOT work Tue Mar 13, 2018 7:24 pm • by halloleo
But I want exactly the opposite: Running the script exactly and only when the move action fails.
halloleo
 
Posts: 59
Joined: Thu Apr 27, 2017 10:10 pm

Re: Notification only if a move did NOT work Wed Mar 14, 2018 10:43 am • by Mr_Noodle
Ah, that can't be done unless you do the move yourself in a script.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support