Mailing Lists: Apple Mailing Lists

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

on panel ended - don't work, why?



Dear Scripters,

i work on my first ASS project and have again a problem. I use the
"panel" for some inputs.
The "open panel" works fine, the "close panel" works fine, but the "on
panel ended" handler don't work.
The Event Handler "panel ended" (in the Interface builder) is activated
an uses the same AppleScript as the main Script (this is also
activated). So all "panel ended" buttons are activated. The panel only
close and there is no display dialog.

my script:
-- panelTest.applescript
-- panelTest

property panelWindow : null

on clicked theObject
set xBtnName to name of theObject
if xBtnName is "btnOpenPanel" then
if panelWindow is null then
set panelWindow to window "xTestPanel"
end if
display panel panelWindow attached to window "main"
else if xBtnName is "btnClosePanel" then
close panel (window of theObject) with result 1
end if
end clicked

on panel ended theNewObject with result xPanelResult
display dialog "Window closed"
end panel ended

I tried also the debugger, but the debugger never runs into the "on
panel ended" handler - why?

Thanks for your help and tips.

happy filemaking

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




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.