how to hide folder

Discussion in 'macOS' started by hehe299792458, Feb 12, 2010.

  1. hehe299792458 macrumors 6502a

    hehe299792458

    Joined:
    Dec 13, 2008
    #1
    I'd like to hide the Microsoft User Data folder because I find it annoying in the Documents folder. I'd like to hide it from view within finder, but I still want MS Office to be able to access it (i.e. I can't rename it with a dot in front of its name or hide it in any way that would also disable access to the folder). Is there a way to do this? Thanks! :D
     
  2. Denarius macrumors 6502a

    Denarius

    Joined:
    Feb 5, 2008
    Location:
    Gironde, France
    #2
    You could put a dot in front of the name and have an AppleScript based around the line

    Code:
    on run
     tell application "Finder" to open (choose file with Prompt "Open Document:" with invisibles)
    end run
    
    Update: Sorry, half asleep here, missed the fact that it was user data. Don't think it's going to happen mate.
     
  3. richard.mac macrumors 603

    richard.mac

    Joined:
    Feb 2, 2007
    Location:
    51.50024, -0.12662
    #3
    enter this command into Terminal

    Code:
    chflags hidden ~/Documents/Microsoft\ User\ Data
     
  4. Denarius macrumors 6502a

    Denarius

    Joined:
    Feb 5, 2008
    Location:
    Gironde, France
    #4

    Hey, I like that. Cheers for the info. Never come across this command before.
     
  5. Gregg2 macrumors 603

    Joined:
    May 22, 2008
    Location:
    Milwaukee, WI
    #5
    Yabut, did it work?
    My experience has been that if you mess with that folder, the Office apps will just create a new one.
     
  6. Denarius macrumors 6502a

    Denarius

    Joined:
    Feb 5, 2008
    Location:
    Gironde, France
    #6
    I did it for a bit of fun and yes it did work. The hidden flag just makes it invisible to the GUI, it doesn't create access isssues.
     

Share This Page