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.
