Last active
December 22, 2015 08:59
-
-
Save brandonpittman/6448705 to your computer and use it in GitHub Desktop.
TextExpander Snippet to create terminal-notifier notification in an AppleScript. Save this as a plain text snippet and expand in AppleScript Editor. I've assigned mine to `,astn`.
This file contains hidden or 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
try | |
set appName to "%filltext:name=appName%" | |
set appID to id of application appName | |
do shell script "/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier -title " & appName & " -sender " & appID & " -message '%filltext:name=theMessage%'" | |
end try |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment