Strange, but Finder has no such options.
I want to make one file invisible or visible but not for all files be visible by Finder.
I found XRay application that can do it. And Xray Vision. They are commercial.
Screen_shot_2010_10_23_at_13.56.24.png ( 78.85K )
Number of downloads: 85Is there anybody knows other way or other applications or better the contextual menu item?
QUOTE
other way or other applications
the 'real applications' for that are probably
'/Developer/Tools/SetFile'
and
'/Developer/Tools/GetFileInfo'
[comes with XCode, hence the /Developer-path]
e.g., a:
QUOTE
root:/# /Developer/Tools/GetFileInfo /mach_kernel
leads to this:
QUOTE
file: "/mach_kernel"
type: "\0\0\0\0"
creator: "\0\0\0\0"
attributes: aVbstclinmedz
created: 04/24/2010 03:32:06
modified: 04/24/2010 03:32:06
notice especially those attributes.
the 'setfile'-help says:
QUOTE
Note: The following attributes may be used with the -a option:
A Alias file
B Bundle
C Custom icon*
D Desktop*
E Hidden extension*
I Inited*
M Shared (can run multiple times)
N No INIT resources
L Locked
S System (name locked)
T Stationery
V Invisible*
Z Busy*
correspondingly:
QUOTE
root:/# /Developer/Tools/SetFile -a v /mach_kernel
...shows a 'file'
QUOTE
root:/# /Developer/Tools/SetFile -a V /mach_kernel
...hides it
pre 10.6 was the .hidden-file still in effect but files attributes have always worked either (well, as long as i can think of).
write a gui-wrapper or finder-plugin for it if you got too much time to spend ;)
hope that helps a bit.
Thank you! It's a good trick. I have not time to spend but hope some other man has it.
To hide:
CODE
sudo chflags hidden /mach_kernel
To show:
CODE
sudo chflags nohidden /mach_kernel
More info:
CODE
man chflags
But what about folders?
QUOTE
sudo chflags nohidden /Volumes/LeoHD/usr
No happen!
Always work for me. Tested on /usr - hide and unhide work fine.
Snow Leopard 10.6.4
Strange. XRay Vision said that it is visible. But Finder - no!
Screen_shot_2010_10_29_at_21.26.19.png ( 304.04K )
Number of downloads: 30as well as /sbin and /home
QUOTE (MowgliBook @ May 7 2011, 01:16 AM)

Doesn't work
Screen_shot_2011_05_07_at_9.16.21.png ( 143.93K )
Number of downloads: 24Press "Make visible" do nothing.
you need to run un SU if it's protected...