Results 1 to 5 of 5
  1. #1


    Member Since
    Aug 02, 2006
    Posts
    30
    Specs:
    13" MBP i5
    View .htaccess files
    I know how to unhide all hidden files, but I'd rather not as I see a lot of crap all over. Is there any way I can only unhide .htaccess files and leave all the other hidden files hidden?

    Thanks.

  2. #2

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    Use the SetFile command that comes with Developer Tools

  3. #3


    Member Since
    Aug 02, 2006
    Posts
    30
    Specs:
    13" MBP i5
    Sorry, but could you explain that in detail?

  4. #4

    MacsWork's Avatar
    Member Since
    May 22, 2005
    Location
    Closer than you think.
    Posts
    2,159
    Specs:
    Performa 6116 2GBSCSI 8MB OS 7.5.3
    Develpoers tools comes with new macs and is also downloadable at the apple adc website but requires you to create an account. You need to install these tools, which may already be install on your Mac. This can be verified by looking in Macintosh HD and if there is a folder called Developer then you got 'em. There is a program/file within the tools called SetFile.

    Stopping,...

    If you want to continue, the use of the terminal is required.

    cmd-shift-g then type /sbin then enter and a windows opens. copy SetFile into /sbin

    Then open the terminlal and type man SetFile this will tell you how to use SetFile to change visibility of a file. Or just google using SetFile in OS X.

  5. #5

    AlexM's Avatar
    Member Since
    Aug 07, 2005
    Location
    Québec, Canada
    Posts
    20
    Specs:
    iBook G4 14", Intel-iMac 17"
    Since OS X hides every file with a name that starts with a ., I use this Applescript to toggle "view/hide system files" when I need to see my .htaccess

    Code:
    set dotVisible to do shell script "defaults read com.apple.Finder AppleShowAllFiles"
    if dotVisible = "0" then
    	do shell script "defaults write com.apple.Finder AppleShowAllFiles 1"
    else
    	do shell script "defaults write com.apple.Finder AppleShowAllFiles 0"
    end if
    tell application "Finder" to quit
    delay 1
    tell application "Finder" to activate

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How To View PST Files?
    By DominicEllison in forum OS X - Apps and Games
    Replies: 3
    Last Post: 04-04-2014, 09:12 AM
  2. How can I view hidden files?
    By Ninjab3ar in forum Switcher Hangout
    Replies: 8
    Last Post: 07-05-2007, 05:35 PM
  3. List view vs. Icon view - can't see all files
    By =^o.o^= in forum Switcher Hangout
    Replies: 8
    Last Post: 01-20-2007, 06:39 PM
  4. Working with .htaccess files
    By vickers in forum Web Design and Hosting
    Replies: 11
    Last Post: 12-03-2006, 11:08 AM
  5. Viewing .htaccess files on the Mac?
    By PromoPunch in forum Web Design and Hosting
    Replies: 4
    Last Post: 05-08-2006, 11:30 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
  •