Created
February 15, 2012 02:32
-
-
Save claylevering/1832671 to your computer and use it in GitHub Desktop.
Canned e-mails through Sparrow using Alfred App
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
# applescript by @claylevering - more info here: http://claylevering.com/?p=16 | |
# download .alfredextension here - http://cl.ly/2h393j3s2Z3x03423U04 | |
on alfred_script(q) | |
set q to q as text | |
if (q is equal to "") then | |
log "no parameter" | |
set alfredInput to "Other" | |
set q to "Other" | |
else | |
log q | |
set alfredInput to q | |
end if | |
using terms from application "Sparrow" | |
tell application "Sparrow" | |
activate | |
set theMessage to make new outgoing message with properties {subject:"CANNED EMAIL SUBJECT - PARAMETER: " & alfredInput, content:"All | |
This is a canned e-mail being generated by Alfred using an AppleScript Extension. If it contains a parameter, it will be listed below and in the subject. | |
PARAMETER: " & alfredInput & " | |
Details (optional): ", message signature:"YOUR SIGNATURE"} | |
tell theMessage | |
make new to recipient at end of to recipients with properties {name:"RECIPIENT NAME", address:"[email protected]"} | |
compose | |
end tell | |
end tell | |
end using terms from | |
end alfred_script |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment