Skip to content

Instantly share code, notes, and snippets.

@tonybruess
Last active August 29, 2015 14:08
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 tonybruess/d76ede2131c5bc6d6683 to your computer and use it in GitHub Desktop.
Save tonybruess/d76ede2131c5bc6d6683 to your computer and use it in GitHub Desktop.
AppleScript workflow for canned responses
on run {input, parameters}
tell application "System Events"
set frontmost of process "Automator Runner" to true
end tell
set the_path to "Macintosh HD:Users:tony:Desktop:Overcast:Replys"
set the_files to list folder the_path
set the_file to {choose from list the_files}
set input to (do shell script "cat " & quoted form of (POSIX path of (the_path & ":" & the_file)))
tell application "System Events"
set frontmost of process "Mailbox (Beta)" to true
end tell
return input
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment