Does anyone know of a way to hide one external drive from the desktop? I still want to see other external drives appear on the desktop when I plug them in, but I have one drive that is kind of permanent now so I don't need to see its icon.
-- Toggle BU Drive Visibility
-- BP 2015
-- You must manually target the drives by inserting the names below.
------------------------------------------------------------------------------------
set drivename to "Tethys (TM)" -- **** Set this to the name of the drive you want to act on. ****
doit(drivename)
do shell script "killall Finder" -- Restart the Finder to show changed visibility This is not necessary as long as I toggle the Finder's vis prefs, but may be in future.
return
------------------------------------------------------------------------------------
on doit(drivename)
set quoteddrivename to quoted form of drivename
try
set attribs to (do shell script "GetFileInfo -a /Volumes/" & quoteddrivename) as text
on error
beep (1)
return
end try
try
considering case
if attribs contains "v" then
do shell script "SetFile -a V /Volumes/" & quoteddrivename with administrator privileges
else
do shell script "SetFile -a v /Volumes/" & quoteddrivename with administrator privileges
end if
end considering
on error
beep (1)
return
end try
end doit
You could also take a blank PNG image and paste it in over the icon -- then you'd be left with just the name of the drive, which hopefully offends the eye somewhat less.Does the icon really "take up that much space" on your desktop?
Why not find an icon you like looking at, and "paste it over" the icon of the drive?
If you make it invisible to the finder, how are you going to -access it- "through the finder" (which can't see it) when you need to do that?
Aside:
Think your desktop has too many icons?
You ought to see MY desktop!
Yes.Thanks @Partron22. Is your script toggling the visibility attribute?
I've got several externals, including SSD boot.Easiest way is to go to Finder Preferences and uncheck External Disks in the General section.
This works in Monterey.I can't get this to work with Monterey. Is it possible to work with this mac os?
thanks.