Re: Hide an Item on Desktop
Re: Hide an Item on Desktop
- Subject: Re: Hide an Item on Desktop
- From: James Walker <email@hidden>
- Date: Thu, 08 Oct 2009 18:32:59 -0700
M Pulis wrote:
On Oct 8, 2009, at 4:37 PM, I. Savant wrote:
On Oct 8, 2009, at 7:24 PM, Maggie Zhang wrote:
Does anyone know if it's possible to programmatically hide an single
item
(e.g. a file or a mounted disk or a directory) from the Desktop?
Rename it so that it starts with a period. "Dot-files" are hidden.
--
I.S.
Please do not advise this hack. It is not supported by the Finder.
dot files are hidden for a reason.
The Finder does not show nor allow users to create "dot" files nor
directories because they are reserved for the system.
Unless you can absolutely prove that your file fits Apple specs for a
legitimately installed "dot" system file that is not the best practice
to make a non-system file invisible. Seek an alternative. There are temp
directories and other legit facilities.
Under prior Mac OS's, dot files were divers. You could trash a system by
rebooting after saving a file with the name ".sony".
Even if 10.6 doesn't barf, there is no guarantee that your
unknown-to-Apple-and-you-were-warned-not-to-do-this dot file will not
corrupt future systems or not be casually destroyed in the background as
part of a system cleanup properly identifying (your) suspicious files as
viral data.
Be very careful.
At this point, I don't think we need to worry much about the classic Mac
OS. Mac OS X is based on Unix, where dot files are common and not
reserved to the OS. (If you know an official document saying otherwise,
please link to it.)
It seems inconsistent to say "it is not supported by the Finder" while
also saying that dot files are not shown to users by the Finder. The
fact that Finder does not show dot files means that hiding files this
way IS supported by the Finder.
--
James W. Walker, Innoventive Software LLC
<http://www.frameforge3d.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden