i’ve been sifting through reference manuals trying to find an example of this. basically, i’m trying to perform an event when i close a window of a particular application. specifically, i’m trying to have aim dump the history when i close an im window. any ideas?
i know it’s something like:
using terms from application "AOL Instant Messenger (SM)"
on close window ("Instant Message with " & inScreenName)
set theMessage to (history of im session 1)
display dialog theMessage buttons {"OK"} default button "OK"
end using terms from