paulminors Posted December 16, 2016 Share Posted December 16, 2016 I'm trying to create a workflow where I type "task {query}" which then sends an email via AppleScript to x@mail.asana.com which would add a new task to my account. I'm struggling with the AppleScript. All I need to do is set the recipient to x@mail.asana.com and subject to {query}. Please help. Here's my code: on run {input, parameters} set recipientName to "Asana" set recipientAddress to "X@mail.asana.com" set theSubject to "{query}" set theContent to "" tell application "Mail" set theContent to theContent & (content of msg) set theSubject to theSubject & (subject of msg) set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true} tell theMessage make new to recipient with properties {name:recipientName, address:recipientAddress} -- send end tell end if end tell return input end run Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now