ProjectOSX

Welcome Guest!

Returning User? Login here.

Want membership privileges? Register here.

 
Start a new topic Add Reply
> How To Toggle Invisibilities
Slice
post Oct 23 2010, 10:17 AM
Post #1
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.
Attached File  Screen_shot_2010_10_23_at_13.56.24.png ( 78.85K ) Number of downloads: 88

Is there anybody knows other way or other applications or better the contextual menu item?
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.1, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
aprodigy
post Oct 23 2010, 02:20 PM
Post #2
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.
Slice
post Oct 23 2010, 03:14 PM
Post #3
Thank you! It's a good trick. I have not time to spend but hope some other man has it. smile.gif
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.1, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
tea
post Oct 24 2010, 10:46 AM
Post #4
To hide:
CODE
sudo chflags hidden /mach_kernel

To show:
CODE
sudo chflags nohidden /mach_kernel

More info:
CODE
man chflags
Slice
post Oct 28 2010, 09:21 AM
Post #5
But what about folders?
QUOTE
sudo chflags nohidden /Volumes/LeoHD/usr

No happen!
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.1, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
tea
post Oct 28 2010, 12:05 PM
Post #6
Always work for me. Tested on /usr - hide and unhide work fine.
Snow Leopard 10.6.4
Slice
post Oct 29 2010, 05:27 PM
Post #7
Strange. XRay Vision said that it is visible. But Finder - no!
Attached File  Screen_shot_2010_10_29_at_21.26.19.png ( 304.04K ) Number of downloads: 30

as well as /sbin and /home
blink.gif
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.1, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
MowgliBook
post May 6 2011, 09:16 PM
Post #8
http://www.saunalahti.fi/~juhruo/juhosx/ is free and easy to use as well.
HackBook Mini 311c-1070EF - N270 @ 2.4Ghz (VID 1.26V) — F.163GB 1200Mhz DDR3250GB 7200.4Dell Wireless 1510 — BCM92070MD — 10.6 / 7 / Ubuntu
Slice
post May 7 2011, 05:17 AM
Post #9
QUOTE (MowgliBook @ May 7 2011, 01:16 AM) *
http://www.saunalahti.fi/~juhruo/juhosx/ is free and easy to use as well.

Doesn't work
Attached File  Screen_shot_2011_05_07_at_9.16.21.png ( 143.93K ) Number of downloads: 24

Press "Make visible" do nothing.
Пожалуйста, прочитайте ЧаВо!
i3-2120 GA-H61M-S1, Radeon HD6670, ALC887(VoodooHDA 2.8.4), OS⌘10.9.1, OS⌘ 10.7.5 Clover FakeSMC_plugins_3.3.1 Realtek LAN v3.1.2
MowgliBook
post Jul 9 2011, 12:14 PM
Post #10
you need to run un SU if it's protected...
HackBook Mini 311c-1070EF - N270 @ 2.4Ghz (VID 1.26V) — F.163GB 1200Mhz DDR3250GB 7200.4Dell Wireless 1510 — BCM92070MD — 10.6 / 7 / Ubuntu

Add Reply Start a new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members: