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:	14
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

Similar Threads
thread Thread Starter Forum Replies Last Post
Desktop suddenly darkens and menu bar and desktop icons disappear vonglower OS X Mavericks (10.9) 0 Jan 15, 2014 06:17 AM
I think 10.8 is hiding my boot drive Ravich OS X 10.8 Mountain Lion 0 Oct 22, 2013 07:58 PM
iPhone: Springtomize and hiding icons Baggy Spandex Jailbreaks and iOS Hacks 4 Feb 9, 2013 11:13 AM
Using Applescript to reference target's desktop CountrySeacow Mac Programming 2 Dec 7, 2012 06:28 PM
iPhone: Hiding Apps (icons) and Battery Life ACardAttack Jailbreaks and iOS Hacks 7 Sep 4, 2012 07:30 PM

Forum Jump

All times are GMT -5. The time now is 01:10 PM.

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

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