Is there anyway to monitor respectively react on certain growl notifications like "Volume XY is mounted"?
Regards
Moderator: Mr_Noodle
La_Tristesse wrote:Thanks the answers.
@ a_freyer
Could you explain further and give a example?
tail -50 /private/var/log/system.log | grep "Growl\[" | grep -Ev "\-\-\-|Reserving" | tail -1| sed -n -e '/^[^(]*(\([^)]*\)).*/s//\1/p'
system_profiler -xml SPUSBDataType | grep -c "iPhone"
La_Tristesse wrote:Thanks, but how do I monitor this? I don't get it. Do I have to run a bash script with the launchagent every 30 seconds or how do I achieve that.
#!/bin/bash
if [ $(system_profiler -xml SPUSBDataType | grep -c "iPhone") == 1 ]
then
open "/PathToiProxy"
fi