|
#1
| ||||
| ||||
| [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 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. |
|
#2
| ||||
| ||||
| Quote:
__________________ PowerBook G4 - 867MHz G4, 640MB, 80GB HD, 80GB EHD, SuperDrive, Airport, Mac OS X 10.4.8 |
|
#3
| ||||
| ||||
| 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 |
|
#4
| ||||
| ||||
| Much better, works great
__________________ PowerBook G4 - 867MHz G4, 640MB, 80GB HD, 80GB EHD, SuperDrive, Airport, Mac OS X 10.4.8 |
|
#5
| ||||
| ||||
| 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 |
|
#6
| |||
| |||
| Or you could try "Tweak Freak" http://home.comcast.net/~jeff.ulicny.../utils.html#tf |
|
#7
| |||
| |||
| 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. |
|
#8
| ||||
| ||||
| 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 |
![]() |
| Bookmarks |
| Thread Tools | |
| |