Re: SetVisibleInTiger
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