Guest User

Untitled

a guest
Jun 23rd, 2018
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on alfred_script(q)
  2. set alfredInputCheck to q
  3.    try
  4.     set alfredInput to alfredInputCheck
  5.    on error
  6.     set alfredInput to "Other"
  7.     set alfredInputCheck to ""
  8.     end try
  9.    
  10. using terms from application "Sparrow"
  11.     tell application "Sparrow"
  12.        activate
  13.         set theMessage to make new outgoing message with properties {subject:"MESSAGE SUBJECT - " & alfredInput, content:"MESSAGE BODY"}
  14.         tell theMessage
  15.            make new to recipient at end of to recipients with properties {name:"EMAIL NAME", address:"EMAIL ADDRESS"}
  16.            compose
  17.         end tell
  18.     end tell
  19. end using terms from
  20. end alfred_script
Add Comment
Please, Sign In to add comment