Skip to content

Instantly share code, notes, and snippets.

@claylevering
Created February 15, 2012 02:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save claylevering/1832671 to your computer and use it in GitHub Desktop.
Save claylevering/1832671 to your computer and use it in GitHub Desktop.
Canned e-mails through Sparrow using Alfred App
# 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:"RECIPIENT@EMAIL.ADDRESS"}
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