The problem that I am experiencing (and I believe John is as well) is
that I can't even get the "Should Close" handler to TRIGGER let along
return anything. I just ran a test on a doc-based app that I am working
on. I attached to "Should Close" handler to the main window and made
sure that the "Should Close" was directed at my applescript file. The
sample code, below, is never called:
on should close theObject
log theObject
beep
return true
end should close
Am I not linking the handler correctly? Should I be linking the handler
to something else?
Brad
-----
COMPUTER: a nimble electronic brain devoid of animal passions and human
wit and therefore admirably suited to the contemporary corporate
environment. -- The Cynic's Dictionary
On Oct 21, 2004, at 11:08 AM, Kiel wrote:
It must return true or false
Regards
Andreas
On Oct 21, 2004, at 7:01 PM, John Mistler wrote:
I cannot seem to get the "Should Close" handler of the document
window to
trigger when the document window is closed. I have verified that it
is
checked in IB and the handler exists in the document script. Has
anyone
gotten it to work?