New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - mach alias, mach.sym, automount


Post Reply New Thread Subscribe

 
Thread Tools
rerks

 
Member Since: Nov 03, 2006
Posts: 51
rerks is on a distinguished road

rerks is offline
i don't have 'shows hidden files' enabled but for some reason when i right click on my harddrive icon in the dock for a quick view, i get the hidden files mach, mach.sym and automount visible. this is just a minor nuisance as they don't appear in the finder but how do you get them to be invisible again in the dock quick view. ive tried renaming them with the . prefix in the terminal but they just reappear again. any ideas?
QUOTE Thanks
MacHeadCase
Guest
 
Posts: n/a

Use XRay to set them as invisible again.

Hope this helps. :girl:
QUOTE Thanks
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,560
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM

mac57 is offline
Does anyone know how to make a file invisible from Terminal.app? i.e. is there a command line command to do this?

I know that ANY file whose first letter is a dot is invisible. However, the above files aren't named in this way. I wonder what XRay is changing to make them invisible? Inquiring minds need to know... :-)

My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
I was on the Mac-Forums honor roll for September 2007
QUOTE Thanks
NanoBite

 
Member Since: Oct 27, 2005
Posts: 4,714
NanoBite is an unknown at this point

NanoBite is offline
Quote:
Using Terminal.
If you are at least a bit familiar with Unix and prefer to use Terminal to accomplish this toggling of invisibility status, you can easily do so. One advantage of using Terminal is that files that are otherwise invisible in the Finder can be easily listed in Terminal.
For starters, you can accomplish the same changes just described with Property List Editor by using the defaults command. Specifically, to make invisible files visible, type the following: defaults write com.apple.finder AppleShowAllFiles Yes.

To toggle the invisibility bit of a single file, however, you’ll again need help from Apple's Xcode Tools software. This time you need a Unix program called SetFile. You'll find it, together with a collection of other Unix software, in the /Developer/Tools directory.

By default, the software in the Tools directory will not run simply by typing the name of the program (there are many ways to resolve this inconvenience, but that's a subject for another article). Here's the quickest and easiest way to put SetFile in action and use it modify a file's invisibility status:

Launch Terminal.
Open the /Developer/Tools folder in the Finder. Locate SetFile and drag its icon to the terminal window. The Directory path for SetFile (/Developer/Tools/SetFile) should appear in the Unix command line prompt.
Type: -a V . Leave a space after the upper case V.
Locate the file that you want to make invisible. Drag its icon to the Terminal window. Its path should now be added to the same command line prompt.
Thus, for our aforementioned MyDoc file on the Desktop, when you are done doing all of the above, the command line should look like this:


/Developer/Tools/SetFile -a V /Users/homedirectoryname/Desktop/MyDoc
where homedirectoryname is the name of your home directory (mine is landau, for example).


That is just a teaser from this site.
QUOTE Thanks
novicew

 
novicew's Avatar
 
Member Since: Jan 04, 2006
Location: Hamburg, Germany
Posts: 1,385
novicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to allnovicew is a name known to all
Mac Specs: MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)

novicew is offline
To show hidden files
defaults write com.apple.finder AppleShowAllFiles TRUE

To hide
defaults write com.apple.finder AppleShowAllFiles FALSE
QUOTE Thanks
mac57

 
mac57's Avatar
 
Member Since: Apr 29, 2006
Location: St. Somewhere
Posts: 4,560
mac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant futuremac57 has a brilliant future
Mac Specs: iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM

mac57 is offline
Thanks Pulse-8!

It is not as simple as I had hoped. I knew that there wasn't a standard *nix command for it, and I was hoping that the Mac OS X had perhaps added a simple command for it. I see that they have, but not made it exactly intuitive to use!

However, the real gem here, and one that I did not know, is that by simply dragging any file from anywhere, into the Terminal window, you place its full pathname onto the command line. Now that is what I call integration!! Excellent!!

My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
I was on the Mac-Forums honor roll for September 2007
QUOTE Thanks
rerks

 
Member Since: Nov 03, 2006
Posts: 51
rerks is on a distinguished road

rerks is offline
MacHeadCase
i downloaded xray and used it to make those three files invisible. it worked and i deleted xray as i have no other use for it and didnt want it. now only mach.sym is back. is this an os x bug? do i need to keep the xray plugin it installs?
QUOTE Thanks

Post Reply New Thread Subscribe


« How do you permanently Map a shared PC folder? | eject button »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
color on the terminal zero17 OS X - Development and Darwin 25 05-02-2011 03:20 PM
Changing the Icon For Desktop Alias mac57 Switcher Hangout 6 05-20-2006 11:45 AM
Unable to alias command for Trash init6 OS X - Operating System 6 02-21-2006 01:42 PM
Whats an Alias? hojkoff_101 Internet, Networking, and Wireless 1 01-19-2006 09:26 PM

All times are GMT -4. The time now is 09:47 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?