Skip to content

Instantly share code, notes, and snippets.

@reinvented
Created November 5, 2012 19:19
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 reinvented/4019726 to your computer and use it in GitHub Desktop.
Save reinvented/4019726 to your computer and use it in GitHub Desktop.
An AppleScript to use with Alfred.app to create a new Trac ticket by email
on alfred_script(q)
tell application "Mail"
set myMessage to make new outgoing message with properties {visible:true, subject: q}
set message signature of myMessage to signature "trac"
tell myMessage
make new to recipient with properties {name:"Trac", address:"ticket@example.com"}
end tell
activate
end tell
end alfred_script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment