Last active
August 29, 2015 14:08
-
-
Save tonybruess/d76ede2131c5bc6d6683 to your computer and use it in GitHub Desktop.
AppleScript workflow for canned responses
This file contains 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
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