• 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: SetVisibleInTiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SetVisibleInTiger


  • Subject: Re: SetVisibleInTiger
  • From: Jeff Porten <email@hidden>
  • Date: Mon, 15 Aug 2005 22:43:19 -0400

On Aug 2, 2005, at 7:34 AM, kai wrote:

This works quite well here:

-------------------

to toggleVisible(f)
tell application "System Events" to set f's visible to not f's visible
tell application "Finder"
update f
tell (get f's folder)'s container window to if exists then
close
repeat while exists
delay 0.1
end repeat
open
end if
end tell
end toggleVisible


toggleVisible(choose file)

A possibly simpler solution, with Developer Tools installed:

do shell script "/Developer/Tools/SetFile -a V " & quoted form of POSIX path of (theFile)

Replace V with v to make it visible again.

Best,
Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SetVisibleInTiger
      • From: kai <email@hidden>
References: 
 >SetVisibleInTiger (From: DigitEL <email@hidden>)
 >Re: SetVisibleInTiger (From: kai <email@hidden>)

  • Prev by Date: Re: Really dumb question . . .
  • Next by Date: Re: Best way to tell if a file copy has finished.
  • Previous by thread: Re: SetVisibleInTiger
  • Next by thread: Re: SetVisibleInTiger
  • Index(es):
    • Date
    • Thread