Results 1 to 7 of 7
  1. #1


    Member Since
    Nov 03, 2006
    Posts
    51
    mach alias, mach.sym, automount
    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?

  2. #2
    MacHeadCase
    Guest
    Use XRay to set them as invisible again.

    Hope this helps. :girl:

  3. #3

    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    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

  4. #4


    Member Since
    Oct 27, 2005
    Posts
    4,702
    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.

  5. #5

    novicew's Avatar
    Member Since
    Jan 04, 2006
    Location
    Hamburg, Germany
    Posts
    1,385
    Specs:
    MacBook Pro | iMac(2.1 G5) | MacBook(2.16 C2D) | MacMini (1.67 CD) | iPhone 4 | iPad (3rd Gen)
    To show hidden files
    defaults write com.apple.finder AppleShowAllFiles TRUE

    To hide
    defaults write com.apple.finder AppleShowAllFiles FALSE

  6. #6

    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    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

  7. #7


    Member Since
    Nov 03, 2006
    Posts
    51
    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?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Deleted Mach Kernel
    By smiles in forum OS X - Operating System
    Replies: 1
    Last Post: 07-09-2008, 05:40 PM
  2. Asking about Mach (and how to trace context switch by Dtrace)
    By mountaintai in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 12-10-2007, 12:34 AM
  3. mach kernel - what is it?
    By Stefan in forum OS X - Operating System
    Replies: 6
    Last Post: 11-16-2007, 11:49 AM
  4. Mach kernel missing?
    By Deeeebs in forum OS X - Operating System
    Replies: 1
    Last Post: 05-26-2007, 12:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •