Page 1 of 1

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

PostPosted: Tue Jul 22, 2014 7:22 pm
by ohshititsjake
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

Re: Trying to perfect a hazel recipe. Is there a way to emai

PostPosted: Wed Jul 23, 2014 3:10 pm
by Mr_Noodle
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.