Skip to content

Instantly share code, notes, and snippets.

@brandonpittman
Last active December 22, 2015 08:59
Show Gist options
  • Save brandonpittman/6448705 to your computer and use it in GitHub Desktop.
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`.
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