Shell Script Notifications

Talk, speculate, discuss, pontificate. As long as it pertains to Hazel.

Moderators: Mr_Noodle, Moderators

Shell Script Notifications 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
maattt34
 
Posts: 3
Joined: Fri Jun 14, 2013 11:54 am

Re: Shell Script Notifications 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.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Shell Script Notifications 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"
mws
 
Posts: 6
Joined: Mon Jul 08, 2013 1:04 pm


Return to Open Discussion