Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Aug 27, 2013, 07:36 AM   #1
macstatic
macrumors 6502a
 
Join Date: Oct 2005
Applescript -hiding desktop drive icons

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.
macstatic is offline   0 Reply With Quote
Old Aug 27, 2013, 07:58 AM   #2
kryten2
macrumors 6502a
 
Join Date: Mar 2012
Location: Belgium
You can try Finder Preferences.
Attached Thumbnails
Click image for larger version

Name:	Picture 8.png
Views:	5
Size:	67.6 KB
ID:	430200  
__________________
Space Corps Directive 34124
kryten2 is offline   0 Reply With Quote
Old Aug 28, 2013, 03:19 PM   #3
macstatic
Thread Starter
macrumors 6502a
 
Join Date: Oct 2005
Yes, but this hides ALL drives, or ALL external drives, which is not what I want.
macstatic is offline   0 Reply With Quote
Old Aug 31, 2013, 08:57 AM   #4
see.solve.
macrumors newbie
 
Join Date: Oct 2012
What about solutions posted in the "How to hide a specific drive from desktop?" thread?
see.solve. is offline   0 Reply With Quote
Old Aug 31, 2013, 02:34 PM   #5
macstatic
Thread Starter
macrumors 6502a
 
Join Date: Oct 2005
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.
macstatic is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:49 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC