Macworld Forums

Macworld Forums: Mac OS X Hints Weblog: Show all files in the Finder - Macworld Forums

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Mac OS X Hints Weblog: Show all files in the Finder

#1 User is offline   Macworld.com 

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,900
  • Joined: 06-February 04

Posted 14 July 2006 - 10:00 AM

Learn how to force OS X to show all files in the Finder, including normally hidden Unix files and folders. [more]
0

#2 User is offline   kenm22 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 13-July 06

Posted 14 July 2006 - 10:23 AM

It is much easier just using the Freeware TinkerTool.
0

#3 User is offline   armadillo 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 02-September 05

Posted 14 July 2006 - 11:09 AM

Here's a one-trick (actually two-trick) pony I've been using:
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
Take the above AppleScript, open Script Editor, paste into window, and save as application, leaving all check boxes unchecked. Double-click on the applet and it will toggle visibility of files, complete with quitting and relaunching the Finder. It couldn't be more simple.
0

#4 User is offline   sparky67 

  • Member
  • PipPip
  • Group: Members
  • Posts: 164
  • Joined: 10-December 05

Posted 14 July 2006 - 07:21 PM

Quote:

Take the above AppleScript, open Script Editor, paste into window, and save as application, leaving all check boxes unchecked. Double-click on the applet and it will toggle visibility of files, complete with quitting and relaunching the Finder. It couldn't be more simple.


Agree! That's a cool script! Thank-you!
0

#5 User is offline   Rhywun 

  • Veteran
  • PipPipPip
  • Group: Members
  • Posts: 1,061
  • Joined: 01-March 06

Posted 14 July 2006 - 10:58 PM

Why does showing all hidden files cause every icon to be dimmed?? I don't see the connection.
0

#6 User is offline   shuggie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-July 08

Posted 22 July 2008 - 02:51 AM

sparky's got it in one!

Thanks armadillo for the script. I'm a newbie in the Mac world, still stumbling around with OS X, so it's great to find help like this.
0

#7 User is offline   sonofole 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-August 07

Posted 30 July 2008 - 11:33 AM

I get an error with the above script.

2008-07-30 15:36:09.959 defaults[8044]
The domain/default pair of (com.apple.Finder, AppleShowAllFiles) does not exist.



Any ideas?
0

#8 User is offline   shuggie 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 06-July 08

Posted 30 July 2008 - 08:42 PM

Hi sonofole

I got the script to work by simply highlighting (dragging the cursor) and copying (with cmd-c) as described. I have been able to replicate your error by inserting a comma between com.apple.Finder and
AppleShowAllFile (as shown in your error message).

Hope that helps. The script really does work!
0

#9 User is offline   sonofole 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 25-August 07

Posted 31 July 2008 - 04:45 AM

Unfortunately, I checked the script I have and it's exactly as printed above.

I'm running 10.4.11 on a PowerPC G4.

Any ideas anyone? Thanks,
0

#10 User is offline   mufasa 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 04-August 08

Posted 04 August 2008 - 09:21 AM

Hi,

I also got the same error you mentioned. After some investigation I found the error lay in the script itself. The very first time you run this script, the property AppleShowAllFiles does not exist for Finder, so the attempt to read it throws an error. I modified the script and added a few lines at the end to announce the Visibility mode it has set. Here is my modified script:

try
set dotVisible to do shell script "defaults read com.apple.finder AppleShowAllFiles"
on error errorMessage number errorNumber
set dotVisible to 0
end try
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
if dotVisible = "0" then
say "VISIBLE"
else
say "HIDDEN"
end if
0

#11 User is offline   stevew_f 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 16-August 08

Posted 16 August 2008 - 05:53 AM

Very nice! One small suggestion:
At the end of the script, instead of using the voice confirmation, change the name of the application from "Hide..." to "Show..." (or vice-versa)....

Thing is, I don't know how to write that; it's up to you skilled folks.
0

#12 User is offline   fitzdevlin 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 28-August 08

Posted 28 August 2008 - 05:26 PM

Griffiths terminal command is the only one of these suggestions that my mini power pc responds to, and unfortunately it still doesn't solve my problem:
i have a folder on my SimpleTech external that Finder/Spotlight are incapable of locating, yet certain applications show the folder as extant and can manipulate/process the files contained in it, i.e. mp3, pdf etc.
in the open dialog for these applications (macmp3gain and itunes) i'm able to browse multiple volumes/copies of my external, "dogdrive." this means that these applications show dogdrive, dogdrive 1, dogdrive 2 and so on.
i believe this is related to putting my mini to sleep. upon waking it, i receive the message that the drive was not properly ejected.
each time it seems to repartition, the 30+ gigs then reside on the most recently created volume (currently dogdrive 3).
Finder/Spotlight are unable to locate anything but the root dogdrive.
sorry to divert this thread.
any tips?
i'd be glad to append some screenshots to my post if i knew how.
thanks.
0

#13 User is offline   ericrdb 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 17-September 08

Posted 17 September 2008 - 01:22 PM

Working great here. Deployed as my very first "hello world" Mac app (MacBook, OS X 10.5.5). Thanks!

eric db

www.mydbsolution.com
0

#14 User is offline   Jagdeep222 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 01-October 08

Posted 01 October 2008 - 07:36 AM

I have to toggle between show all files and hiding them (because I share a computer with other users - I wouldn't want them to much with hidden files). Toggling in the aforementioned manner is pretty easy - but I wrote an application to do it with the click of a button:
Show All Files App
I hope that this program helps people out!
0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users