Hi
I'm not an expert in programming but I managed to build a CoreData
application and enhanced it with some AppleScript. My app has only one
window and from time to time my user manages to close the window and
has no way of re-opening it (apart from quitting and restarting).
I see two possibilities to get around this:
1.)
My app could open the window when activated again (as Mail,
iTunes, ... does)
2.)
My app could quit when the windows closes.
So far I have no idea how to manage this. In the "currency converter"
tutorial I found the following event handler
on should quit after last window closed theObject
return true
end should quit after last window closed
I added the handler to the AppleScript and linked it with the event in
Interface Builder. But this doesn't work, the event handler is not
even called.
I guess the reason for it is that my app is a CoreData app, not a
AppleScript Studio-app. The handler works when I use it in another
ASS-app.
Is there a way to get this working in an CoreData app with AppleScript
code? Any hints are very appreciated.
ciao
Martin