image
image

Go Back   macosx.com > Mac Help Forums > HOWTO & FAQs

Reply
 
LinkBack Thread Tools
  #1  
Old July 25th, 2004, 04:52 PM
Racer D's Avatar
what?
 
Join Date: Oct 2002
Posts: 282
Thanks: 0
Thanked 0 Times in 0 Posts
Racer D is on a distinguished road
[HOWTO] - simply turn Finder's showing of hidden files on or off (updated)

I know there have been ways of doing this since like forever, but it always took an opening of one app (terminal or some prefpane) and relauncing finder. I've found a way to make it even easier

1) navigate to /Applications/AppleScript and launch Script Editor

2) copy & paste this code into script editor's window
Code:
do shell script "if [ `cat ~/Library/Preferences/com.apple.finder.plist | grep -A 1 AppleShowAllFiles | grep string | cut -c10-11` == 'ON' ]; then
defaults write com.apple.finder AppleShowAllFiles OFF
else
defaults write com.apple.finder AppleShowAllFiles ON
fi"

tell application "Finder" to quit
delay 1
tell application "Finder" to launch
3) go to file / save and save to wherever you like with a name you like but be sure to set file format to application and to uncheck all options

[optional]) change the file's icon

4) Now navigate to the folder where you saved your file and drag & drop the file into your Finder's toolbar (You have to hold the file above the toolbar for about a second and then drop it to make it work)

now, by clicking the icon in your toolbar, the finder will relaunch, toggling the state of hidden files (show/hide). clicking the icon again will toggle back.

it's a simple applescript that edits Finder's preferences file and relaunches Finder.

WARNING: hidden files are hidden for a reason. Use this script only if you know what you're doing. I hold no responsibility for f*cked up macs.

Last edited by Racer D; July 27th, 2004 at 04:56 AM.
Reply With Quote
  #2  
Old July 27th, 2004, 03:39 AM
bkaron's Avatar
Yep, That's Me!
 
Join Date: Oct 2003
Location: Florida
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
bkaron is on a distinguished road
Quote:
Originally Posted by Racer D
now, by clicking the icon in your toolbar, the finder will relaunch, toggling the state of hidden files (show/hide). clicking the icon again will toggle back.
It doesen't work. I did every thing you said and I even did a fresh log out and nothing, the app oppens and nothing
__________________
PowerBook G4
- 867MHz G4, 640MB, 80GB HD, 80GB EHD, SuperDrive, Airport, Mac OS X 10.4.8
Reply With Quote
  #3  
Old July 27th, 2004, 04:58 AM
Racer D's Avatar
what?
 
Join Date: Oct 2002
Posts: 282
Thanks: 0
Thanked 0 Times in 0 Posts
Racer D is on a distinguished road
hmm, there was some error whit the file when downloading obviously. I edited my original post, so now you have to create (copy & paste actually) your own script instead of downloading it.

Try it and tell me if it works now
Reply With Quote
  #4  
Old July 27th, 2004, 05:14 AM
bkaron's Avatar
Yep, That's Me!
 
Join Date: Oct 2003
Location: Florida
Posts: 256
Thanks: 0
Thanked 0 Times in 0 Posts
bkaron is on a distinguished road
Much better, works great
__________________
PowerBook G4
- 867MHz G4, 640MB, 80GB HD, 80GB EHD, SuperDrive, Airport, Mac OS X 10.4.8
Reply With Quote
  #5  
Old July 31st, 2004, 05:27 PM
baggss's Avatar
Stoopid American Rednek
 
Join Date: May 2004
Location: Margaritaville
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
baggss is on a distinguished road
NICE! Thanks for the tip!!!
__________________
1.3Ghz G4 (SawTooth)|1Gb RAM|OSX 10.3.4|2 X 200 Gb (RAID) HDD, 80Gb HDD, 2 X 40Gb HDD
14 inch G4 iBook |768Mb RAM|OSX 10.3.4|30GB|Combo Drive|Airport
iOnMac.com
Reply With Quote
  #6  
Old March 27th, 2005, 08:18 AM
Registered User
 
Join Date: Mar 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
rawehage is on a distinguished road
Or you could try "Tweak Freak" http://home.comcast.net/~jeff.ulicny.../utils.html#tf
Reply With Quote
  #7  
Old June 3rd, 2005, 06:21 AM
Registered User
 
Join Date: Sep 2004
Location: here
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
MHPb is on a distinguished road
fyi - i had this script as an app on 10.3. I then forgot i had it, upgraded to 10.4 and accidentally ran the script showing all those lovely hidden files. Unfortunately this script does not switch them back so that they are hidden. Thank you rawehage for the link to tweekfreak as that managed to switch them back off.
Reply With Quote
  #8  
Old August 26th, 2005, 05:29 PM
Racer D's Avatar
what?
 
Join Date: Oct 2002
Posts: 282
Thanks: 0
Thanked 0 Times in 0 Posts
Racer D is on a distinguished road
If anyone is still interested, here is teh updated script that works on tiger:

Code:
do shell script "if [ `defaults read com.apple.finder AppleShowAllFiles` == 'ON' ]; then
defaults write com.apple.finder AppleShowAllFiles OFF
else
defaults write com.apple.finder AppleShowAllFiles ON
fi"

tell application "Finder" to quit
delay 1
tell application "Finder" to launch
Reply With Quote
Reply

Bookmarks

Thread Tools

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 Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 11:50 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1
Copyright 2000-2010 DigitalCrowd, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52