• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Show/Hide invisibles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Show/Hide invisibles


  • Subject: Re: Show/Hide invisibles
  • From: Deivy Petrescu <email@hidden>
  • Date: Sun, 7 Dec 2003 13:51:47 -0500

At 1:08 PM -0500 12/7/03, Marc K. Myers wrote:
I find myself opening Tinkertool several times a day in order to show invisibles in Finder windows and then hide them again. Is there a way to script the Finder or through Unix scripting to do the same thing? I haven't ventured into the mysteries of UI scripting yet but I might have to use it with Tinkertool if there isn't an easier way to accomplish the same thing.

Marc [12/07/03 1:08:04 PM] _______________________________________________

I use this script to turn on/off the visibility of invisible files

___
do shell script "defaults read com.apple.Finder | grep AppleShowAllFiles"
if (result as string) contains "= 1;" then
do shell script "defaults write com.apple.Finder AppleShowAllFiles '0'"
else
do shell script "defaults write com.apple.Finder AppleShowAllFiles '1'"
end if
delay 1

--- quit and reactivate the Finder to use the new preferences.
tell application "Finder" to quit
delay 1
tell application "Finder" to activate
____

--
Regards
Saudagues

Deivy
http://www.dicas.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Show/Hide invisibles
      • From: Laine Lee <email@hidden>
    • Re: Show/Hide invisibles
      • From: Laine Lee <email@hidden>
    • Re: Show/Hide invisibles
      • From: Gnarlodious <email@hidden>
References: 
 >Show/Hide invisibles (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: Drive-by sig files
  • Next by Date: Re: Drive-by sig files[so totally OT that this is redundant]
  • Previous by thread: Show/Hide invisibles
  • Next by thread: Re: Show/Hide invisibles
  • Index(es):
    • Date
    • Thread