AppleEvents question

James Spahr jsp at designframe.com
Sun May 26 12:09:04 PDT 2002


> So, how do I divine the AEvents that OmniGraffle responds to? I can
> look at the dictionary via Script Editor, but that is the limit of my
> knowledge
> on this subject. Can I derive the events from the dictionary? What is the
> application code for OG, or how do I discover such things? A few well placed
> RTFMs are in order, I don't doubt, and will appreciate them fully.

Any application/language can parse an application's aete resource, which
will supply the apple event syntax. If 'MzScheme' can not do this your most
user friendly way of doing this is to use Script Debugger to view the
dictionary as raw apple events.

Example:

count: Return the number of elements of a particular class within an object.
«event corecnte» «class obj »  -- the object for the command
         [«property kocl» «class type»] -- (each) The class of objects to be
counted.
    Result: «class long»  -- the reply for the command


This is basically all the data (sans the reciever string for OG, which if I
remember correctly would be OG's creator code) that you need to send a count
request to OG from  'MzScheme'.

Personally, I find sending and receiving raw Apple Events to be less than
pleasant, and really can't help you more than this.

James.




More information about the OmniGraffle-Users mailing list