Automatically moving mail attachments for Hazel to act on

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

Moderator: Mr_Noodle

Hi, I am new to Hazel and absolutely love it. I have been able to do some cool things, and was wondering if there is an Apple Script, to be able to identify thru apple rules in mail, certain attachments, then move them to a folder that Hazel is watching and have her do her thing...

Thanks

Albert
aiaa
 
Posts: 7
Joined: Sat Apr 01, 2017 5:07 pm

Seems a bit outside of Hazel support here. You may want to check out general AppleScript sites as they may have something to do that.

Also, any attachments you open yourself in Mail end up in your mail downloads folder (settable in Mail's preferences).
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Thank you for your reply, actually, I was able to use Automator to find the specific email, extract the attachment, and save to desktop, where Hazel takes over and moves to a specific folder.

The only thing I am not sure of is if I have to run Automator manually, (click on it) to have it do its thing, or if it does it automatically. I get this specific email every Friday, so will have to wait till this Friday to see.

thanks
aiaa
 
Posts: 7
Joined: Sat Apr 01, 2017 5:07 pm

What you can do is monitor the Mail Downloads folder: /Users/username/Library/Containers/com.apple.mail/Data/Library

The only problem is, that the attachment to emails is only saved to that folder when you access the attachment in Mail.
deathlord
 
Posts: 4
Joined: Wed Sep 21, 2016 2:11 pm

Oddly, Mail's rules doesn't have an action to run automator workflows. It does allow you to run an AppleScript though. You can either write a script to do what you want or have it run your automator workflow.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support