Skip to content

Instantly share code, notes, and snippets.

@gourneau
Created July 8, 2013 05:29
Show Gist options
  • Save gourneau/5946401 to your computer and use it in GitHub Desktop.
Save gourneau/5946401 to your computer and use it in GitHub Desktop.
AppleScript script to compose email using Microsoft Outlook
tell (current date) to get (it's month as integer) & "-" & day & "-" & (it's year as integer)
set MyDay to the result as text
set Mytitle to "Daily Email - " as text
set Mytitle to Mytitle & MyDay
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:Mytitle}
make new recipient at newMessage with properties {email address:{name:"Name", address:"test@example.com"}}
#make new cc recipient at newMessage with properties {email address:{name:"Name", address:"test@example.com"}}
open newMessage
end tell
@cdbeard
Copy link

cdbeard commented Jul 1, 2015

Thanks gourneau, now using this with Alfred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment