It's fine I think you're golden with Growl given it has two events. I'd
really suggest the applescript rules. Think of applescript as just a
different language and don't try to make it a 1:1 comparison to say bash or
python. It's more like plain talking so to speak.

Anyhow you could write a script to watch for the contents for the different
things you want to watch for. The very end of our documentation talks about
how to execute a shell script from there:

http://growl.info/documentation/applescript-rules

I think this is going to handle what you need and be fairly simple once
you've got it worked out in your head and laid out. If you read it and run
into issues once making the script reply back here.


On Sat, Mar 25, 2017 at 2:27 AM, Richard L. Hamilton <[email protected]>
wrote:

> (apologies if this is a dupe; it looked like it failed before, when I had
> a cc to [email protected] when my membership hasn't
> been approved yet)
>
> I'd like to have a script run
> sudo tmutil enable
> when /Volumes/LaCie is mounted, and
> sudo tmutil disable
> sudo tmutil disablelocal
>
> when it's unmounted (I don't want local snapshots on the internal SSD, but
> tmutil disablelocal doesn't seem to be remembered across reboots; it's good
> enough that I have backups running when the Thunderbolt drive is plugged
> in).
>
> Additionally, for that and any other mount/unmount not in
> HardwareGrowler's exception list, I'd like the usual visual notification.
>
> Assume that I've tweaked /etc/sudoers or otherwise made arrangements (such
> as porting Linux pam_ssh_agent_auth.so and configuring it) so that I don't
> need to enter my password for sudo.  And of course, the system won't let me
> unmount the drive if it's in use (not counting forced unmounts), so the
> script doesn't need to worry about that.
>
> I've never really worked with AppleScript, and have no idea how the
> arguments (like whether it's a mount or unmount, and what the mount point
> is) are passed, so some help would be great!
>
> I'd actually rather use ControlPlane than HardwareGrowler+Growl, but
> ControlPlane doesn't (AFAIK) have a mount/unmount "evidence" source, and
> neither HardwareGrowler nor ControlPlane seem to have a provision for
> noticing the connection/disconnection of Thunderbolt devices.
>
> thanks...
>
> --
> You received this message because you are subscribed to the Google Groups
> "Growl Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/growldiscuss.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Chris Forsythe

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/growldiscuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to