Trying to perfect a hazel recipe. Is there a way to email my

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

Moderator: Mr_Noodle

I have filethis.com download monthly credit card statements to my dropbox. From there, hazel will rename them and sort them into folders via date. Once that is finished, hazel will mark it with a tag and send me an email "Your statement is ready!" What I would love to do is have a link in that email to the folder where it resides. I.e., "Your statement is ready, click here to view the statements folder".

Is there a way to create a hyperlink to a local folder? The path is /Users/Lionheartednyhc/Dropbox/Documents/Statements/CreditCard

The email is sent using this applescript:
Code: Select all
    tell application "Mail"
       set theNewMessage to make new outgoing message with properties {subject:"New Statement Available", content:"The latest statement is now available in your statements folder.", visible:true}
       tell theNewMessage
          make new to recipient at end of to recipients with properties {address:"poopfart@fart.poo"}
          send
       end tell
    end tell
ohshititsjake
 
Posts: 7
Joined: Fri May 23, 2014 11:29 am

The variable "theFile" is sent in to your script so you can try to incorporate that into the body of the mail message. Check the in-app help on AppleScript on more details on how to interface your AppleScript with Hazel.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support