Open an application when external hard drive appears

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Open an application when external hard drive appears

Postby ajoyce » Thu Jul 21, 2011 11:53 am

I want to be able to open the system preferences app (particularly the Time Machine pref pane) whenever an external hard drive is connected to my laptop. I would think that Hazel would be able to do this but so far I've not discovered how to go about doing it.

Any ideas?
ajoyce
 
Posts: 5
Joined: Thu Jul 21, 2011 11:45 am

Re: Open an application when external hard drive appears

Postby Mr_Noodle » Fri Jul 22, 2011 10:06 am

I guess you could monitor the Volumes folder and create a rule to match the name of the drive so that when it's added, you can invoke a script to open up System Preferences. Not sure how comfortable you are with scripting but that's the only way I see it being done at the moment.
Mr_Noodle
Site Admin
 
Posts: 2975
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Open an application when external hard drive appears

Postby ajoyce » Fri Jul 22, 2011 10:23 am

Well . . . I would give that a try, but I don't see a "Volumes" folder. I tried monitoring the desktop but that didn't work. I also tried monitoring the name of the hard drive that's connecting, but that didn't work either. So. . . where is this Volumes folder to be found exactly?
ajoyce
 
Posts: 5
Joined: Thu Jul 21, 2011 11:45 am

Re: Open an application when external hard drive appears

Postby Mr_Noodle » Fri Jul 22, 2011 1:42 pm

Ah yes, forgot that Volumes is hidden. Add a folder to Hazel by clicking the "+" button below the folder list. This will bring up the file dialog. From there, press "/" (slash). This will bring up a field where you can enter the path. Enter "/Volumes" there. That should make it appear.
Mr_Noodle
Site Admin
 
Posts: 2975
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Open an application when external hard drive appears

Postby ajoyce » Fri Jul 22, 2011 2:13 pm

Ah! Thanks. That should do it.
ajoyce
 
Posts: 5
Joined: Thu Jul 21, 2011 11:45 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 3 guests



Copyright © 2006-2012 Noodlesoft, LLC, All Rights Reserved. Mac and the Mac logo are trademarks of Apple Computer, Inc., registered in the U.S. and other countries.