Page 1 of 1

how to open only removable drivers

PostPosted: 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 ?

Re: how to open only removable drivers

PostPosted: 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.

Re: how to open only removable drivers

PostPosted: 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 ?

Re: how to open only removable drivers

PostPosted: 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.