Do Something When is a system preference pane that allows the user to watch for drives mounting and un-mounting, allowing you to launch or quit applications, when these events happen. You can launch iTunes when your music hard drive gets mounted, you can quit iTunes when you eject the drive. This is just an example of what can be done.
What's New
Version 1.2:
Universal.
Fixed intermittent bug with regards to saving existing rules.
Requirements
PPC / Intel, Mac OS X 10.3.9 or later
This works beautifully for me. I use it to start up and to shut down sets of apps, like opening and closing all of my audio crap at the same time, so that the apps load together with the plug-ins .This way, I don't sit here for fifteen minutes wondering WTF is wrong with my sounds. Oops! I forgot to start up Hear!
OS X 10.6.6
While I really dig the convenience of DSW and will love to see it further developed, I think in your case you're probably just better off saving system resources and using an AppleScript to launch all that stuff.
tell application "Audio Crap 2.1" to activate
tell application "Hear! 5.2" to activate
tell application "And So On 3.4" to activate
Then save it as an application, add a fancy icon and put it in your Dock to launch everything. Call it Audio Crap launcher or whatever. Does the same thing much faster and you don't have it always running in the background like DSW does.
(Basically) everything that DSW can do, I can do with AppleScript. For example, instead of using DSW to get rid of an encrypted dmg after a set amount of time I can do this:
tell application "Finder"
do shell script "hdiutil attach ~/Documents/cia_secrets.dmg"
delay 3000
do shell script "hdiutil detach -force /Volumes/cia_secrets"
end tell
Just like DSW, it forces the image to go even if you forgot and left files open on the dmg.
That said, what I LOVE about DSW is that I can very easily have all kinds of added factors that can close the dmg and I'm a glutton for user interfaces over typing a bunch of code. There's also a lot of hidden power with DSW that mabye even the dev doesn't know about.
Disclaimer: code AppleScript at your own risk. This is just pointers.
An excellent suggestion, Cowicide - say what, now? "Cowicide"? You from West Texas? - and I appreciate your having gone to the trouble of providing it. Unfortunately, I'm not looking for "better off." I have a kind of purposeless hobby of collecting random apps for any number of a random assortment of reasons. Maybe I need it. Maybe I like the design of the icon. Maybe I like its name.
IAC, under Lion, DSW has developed a bug/a feature that's annoying. It starts up all my audio shit, as desired. However, it now shuts them only long enough to fire them up, again. I can kill them, but, thanks to DSW. they won't die. Oh, well.
keeps shutting itself off in 10.6.6, I'll leave it on then check it later and it will have toggled itself OFF without any interaction with the prefpane on my part. not good...
Works on my Intel MacBook Pro with latest Snow Leopard 10.6.6 just fine (I think). Doesn't seem to use a lot of resources at all and seem to be stable, but I'll report back if I run into trouble. It's a 32bit prepane, so I have to restart the Sys Prefs so that's an annoyance. But this surprisingly DOES work as advertised for me, but YMMV of course.
It will unmount dmg images of my choice after a certain amount of time I specify after mounting them. And even unmount dmg images after I quit apps I specify.
The only thing I don't like is if the timer goes off for the dmg image to unmount and if you have any files open on the mounted dmg image. It doesn't give an error or try to do it later. It just doesn't unmount the image at all without notice so it stays open and vulnerable.
I wish it would have an option to keep attempting to unmount it after a set amount of time after it fails to unmount. Or it would be fantastic if it could force unmount despite whatever is open if I choose that as an option (and willing to risk data loss on the image, of course)
What would be awesome if it also could unmount dmg images after a certain amount of idle time on your computer as well and on sleep, etc.
But anyway. I hope this continues to get updated as it's one of the only easy ways on the Mac to automatically unmount dmg images after certain amounts of time and/or after closing apps without having to write my own scripts, etc. & integrating terminal commands like: "hdiutil info | tail -n1 | awk '{print $1}' | xargs hdiutil detach $1"
The fix for the default install location is in to allow the Start on login to work again.
Sorry for the long delay.
[Version 1.1.1]
Anonymousreviewed on 10 May 2005
How is attaching a folder action to the /Volumes/ directory any different? The interface?
[Version 1.1]
1 Reply
Anonymouscommented on 11 May 2005
Well, most likely. The /Volumes directory is invisible to an average Mac user. The average Mac user doesn't really want to mess with things he/she doesn't understand.
This is why we average Mac users appreciate software developers who give us clean and easy to use GUIs for accomplishing tasks we wouldn't even guess they are possible.
And it's even for free!
Anonymousreviewed on 18 Jul 2004
This is a great idea, and works well - there's still something weird that happens when the app/doc that's run is a terminal command .term file, though - it gets launched as many times as there are volumes on my f/w drive, even if I only mount the volume that the app is linked to in the rule.
Still impressed though!
[Version 1.0.1]
Anonymousreviewed on 17 Jun 2004
Do Something When, will you marry me?
(Finally able to download it. Musta been a gremlin.)
Working fine now, looks like. VERY interesting idea, something that Apple used to have in betas of OS X, nicely implemented. I can see a LOT of useful things to do with this prefpane!
Please login or create a new MacUpdate Member account to use this feature
Watch Lists are available to MacUpdate Desktop Members Upgrade Now
Download and auto-install
using MacUpdate Desktop. Save
time moving folders and cleaning-up.
Do Something When is a system preference pane that allows the user to watch for drives mounting and un-mounting, allowing you to launch or quit applications, when these events happen. You can launch iTunes when your music hard drive gets mounted, you can quit iTunes when you eject the drive. This is just an example of what can be done.
+1
+30
Longboy reviewed on 12 Mar 2011
OS X 10.6.6
+1
+338
tell application "Audio Crap 2.1" to activate
tell application "Hear! 5.2" to activate
tell application "And So On 3.4" to activate
Then save it as an application, add a fancy icon and put it in your Dock to launch everything. Call it Audio Crap launcher or whatever. Does the same thing much faster and you don't have it always running in the background like DSW does.
(Basically) everything that DSW can do, I can do with AppleScript. For example, instead of using DSW to get rid of an encrypted dmg after a set amount of time I can do this:
tell application "Finder"
do shell script "hdiutil attach ~/Documents/cia_secrets.dmg"
delay 3000
do shell script "hdiutil detach -force /Volumes/cia_secrets"
end tell
Just like DSW, it forces the image to go even if you forgot and left files open on the dmg.
That said, what I LOVE about DSW is that I can very easily have all kinds of added factors that can close the dmg and I'm a glutton for user interfaces over typing a bunch of code. There's also a lot of hidden power with DSW that mabye even the dev doesn't know about.
Disclaimer: code AppleScript at your own risk. This is just pointers.
+30
IAC, under Lion, DSW has developed a bug/a feature that's annoying. It starts up all my audio shit, as desired. However, it now shuts them only long enough to fire them up, again. I can kill them, but, thanks to DSW. they won't die. Oh, well.
+1
+338
+2
+338
http://www.azarhi.com/Projects/DSW/index.php
+1
+338
Cowicide reviewed on 01 Feb 2011
It will unmount dmg images of my choice after a certain amount of time I specify after mounting them. And even unmount dmg images after I quit apps I specify.
The only thing I don't like is if the timer goes off for the dmg image to unmount and if you have any files open on the mounted dmg image. It doesn't give an error or try to do it later. It just doesn't unmount the image at all without notice so it stays open and vulnerable.
I wish it would have an option to keep attempting to unmount it after a set amount of time after it fails to unmount. Or it would be fantastic if it could force unmount despite whatever is open if I choose that as an option (and willing to risk data loss on the image, of course)
What would be awesome if it also could unmount dmg images after a certain amount of idle time on your computer as well and on sleep, etc.
But anyway. I hope this continues to get updated as it's one of the only easy ways on the Mac to automatically unmount dmg images after certain amounts of time and/or after closing apps without having to write my own scripts, etc. & integrating terminal commands like: "hdiutil info | tail -n1 | awk '{print $1}' | xargs hdiutil detach $1"
-2
-2
Sorry for the long delay.
Anonymous reviewed on 10 May 2005
This is why we average Mac users appreciate software developers who give us clean and easy to use GUIs for accomplishing tasks we wouldn't even guess they are possible.
And it's even for free!
Anonymous reviewed on 18 Jul 2004
Still impressed though!
Anonymous reviewed on 17 Jun 2004
(Finally able to download it. Musta been a gremlin.)
+3