KILL APPLEEVENT eventType&, eventClass&
May, 2001 (Release 5)
Once established, an Apple Event remains in effect for the life of your program. This includes event handlers that you create as well as event handlers that are created by the runtime. One example might be the apple event that opens a document. Its event type is
_"core" and its class is
_"odoc". If you wanted to override these established settings you would begin by removing the old version.
<code><b>REM</b> _coreEventType = _core"<b>REM</b> _kAEOpenDocuments = _odoc"</code> <code><b>KILL APPLEEVENT</b> _kRequiredEventClass,_kAEOpenDocuments</code>
Now you are ready to establish a new vector.
<code><b>ON APPLEEVENT</b>(_kRequiredEventClass,_kAEOpenDocuments) ¬ <b> FN</b> myODocHandler</code>
INSERT IMAGE HERE!!!!
<img src="res/cd.gif" alt="" width="20" height="19" border="0">
CD Example: AppleEvents Folder
Last modified on 7 July 2009, at 19:51
SENDAPPLEEVENT; HANDLEEVENTS; ON APPLEEVENT; GETPROCESSINFO; APPLEEVENTMESSAGE$