Page 1 of 1

Shell Script Notifications

PostPosted: Fri Jun 14, 2013 12:02 pm
by maattt34
Hi,
Is there any way to include the output of a shell script or a string variable from a shell script to Hazel's Mountain Lion notifications ?
If you need more detail, don't hesitate to ask.
If I can do that Hazel will definitely be the best software ever :)

Thanks in advance

Matthieu

Re: Shell Script Notifications

PostPosted: Fri Jun 14, 2013 12:37 pm
by Mr_Noodle
You can try doing an AppleScript (which can call a shellscript, if needed) and have it export a token which you can then be used in the notification pattern. Search the help for export tokens or AppleScript for specific details on how to do this.

Re: Shell Script Notifications

PostPosted: Mon Jul 08, 2013 1:18 pm
by mws
You could install terminal-notifier and then just call it from your script: terminal-notifier -message "${infile}: converted" -title "your friendly script"