how to open only removable drivers

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

Moderator: Mr_Noodle

how to open only removable drivers Mon Feb 20, 2017 2:24 pm • by muah
atm i have made a rule to watch the Volumes folder which in case of newly added disk it should open that disk with finder.

the only issue is that the HDD disks are being recognized in finder as Local Volume and the usb disk as Removable and i cant find this type under kind in hazel, i can only find volume which treats any disk under volumes as one.

so is there a way to have a rule that only opens usb disks when they are attached ?
muah
 
Posts: 2
Joined: Mon Feb 20, 2017 2:16 pm

Re: how to open only removable drivers Tue Feb 21, 2017 11:52 am • by Mr_Noodle
I don't think there is a Spotlight field for this. You'll have to use a script. The "diskutil" program may be of some use here.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: how to open only removable drivers Tue Feb 21, 2017 3:18 pm • by muah
thanx for ur response, is there a link or a guide u can direct me to ?
muah
 
Posts: 2
Joined: Mon Feb 20, 2017 2:16 pm

Re: how to open only removable drivers Wed Feb 22, 2017 1:05 pm • by Mr_Noodle
You can search the help for information on how to integrate shell scripts into Hazel but writing shell scripts in general is a whole other thing. You'll have to search around for guides on how to do that.

You can also find out more about the "diskutil" by doing "man diskutil" in Terminal.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support