Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in Tiger (?)



Yep,
I think I feel your pain.
When you dismiss a window it's gone. The window id has changed too (and the title is now its name).
I think as far as AppleScripts is concerned, the old one doesn't exist anymore.
How I solved this problem is by using the "should close" handler to make sure the window is made
invisible, instead of being lost forever.


on should close This
set {doClose, This} to {true, name of This}
if (This = "foo") then set {doClose, visible of window This} to {false, false}
return doClose
end should close


Hope this helps,
Bernard Kroon.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-studio mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-studio/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.