Created
November 8, 2018 03:01
-
-
Save atomkirk/9c91ac87e84737758d1f5cf84273b4d9 to your computer and use it in GitHub Desktop.
compose airmail command line args
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osascript sendEmail.applescript 'hello there you' [email protected] [email protected] [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on run argv | |
tell application "Airmail 3" | |
set SUBJ to argv's item 1 | |
set SENDR to argv's item 2 | |
set RECEIPIENTS to argv's (items 3 thru -1) | |
set newMail to make new outgoing message with properties {subject:SUBJ, sender:SENDR} | |
repeat with R in RECEIPIENTS | |
make new to recipient at end of newMail's to recipients with properties {name:"", address:R} | |
end repeat | |
compose newMail | |
activate | |
end tell | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment