Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macstatic

macrumors 68010
Original poster
Oct 21, 2005
2,000
162
Norway
I've had success with a couple of Applescript scripts in hiding hard drive icons on the Finder desktop that I don't need to access (the Mac Pro uses them for backup and cache purposes):

Hiding the drive icon
Code:
quit application "Finder"
tell application "System Events" to ¬
	set visible of disk "BACKUP DRIVE" to false
delay 1
launch application "Finder"

Making the drive visible again

Code:
quit application "Finder"
tell application "System Events" to ¬
	set visible of disk "BACKUP DRIVE" to true
delay 1
launch application "Finder"

However I'm not able to hide a certain drive (nothing happens when I run the "hide" script). This is a bootable backup drive which is daily updated using Chronosync. Is it un-hideable because it's bootable? Is there anything else I can do to hide this drive icon from the desktop?
I'm using OSX 10.6.8.
 

kryten2

macrumors 65816
Mar 17, 2012
1,114
99
Belgium
You can try Finder Preferences.
 

Attachments

  • Picture 8.png
    Picture 8.png
    67.6 KB · Views: 233

macstatic

macrumors 68010
Original poster
Oct 21, 2005
2,000
162
Norway
Thanks. I tried the Terminal suggestion there and the result was the same as with my Applescript, but.... unlike Applescript it gave me an error message: "Permission denied".
So I tried adding myself as a new user for the drive, enabling read/write" and then it worked.

Thanks for heading me in the right direction. I'll have to figure out the correct ownership for my drives.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.