From: ralph@cbnewsj.cb.att.com (Ralph Brandi)
Subject: Re: Microphone Front End for GENIE & Internet mail wanted.
Organization: Democrats for Broccoli
Date: Mon, 7 Sep 1992 03:35:12 GMT

In article <01058004.ccul1q@oberon.notable.com> daven@notable.com writes:
>In article <1992Aug28.134131.20601@cbnewsj.cb.att.com> (comp.sys.mac.comm), ralph@cbnewsj.cb.att.com (Ralph Brandi) writes:

>| luck figuring out how to use them."  I'm having difficulty getting
>| the Do Script AppleEvent to work from QuicKeys and Voice Navigator,
>| especially when I'm just trying to call a script by name rather than
>| including the whole script as a parameter for the AppleEvent.

>Have you downloaded the MicroPhone II technote on how to send it
>AppleEvents? It available on the SVC BBS (510) 849-1912. You might

I have since posting the original article, but it wasn't much help.
I suppose that part of the problem is that I haven't found any
specific documentation on AppleEvents in general.  The other problem
seems to be that the MPII Tech Note and the Articulate Systems Tech
Note use different terminology, or so it seems to me.

The Generic AppleEvents extension for Voice Navigator calls for the
following syntax:

@VXTN(GEVT, APP_SIGNATURE,EVENT_CLASS,EVENT_ID  ARG_LIST

Where
   APP_SIGNATURE is the signature of the application (i.e. DFBO for
MicroPhone II)
   EVENT_CLASS is the event class to be sent (I assume aevt, but
could this be wrong?)
   EVENT_ID is the event ID to be sent (I use dosc, which QuicKeys
tells me is the proper event for Do Script)

The ARG_LIST is composed of three parts, a KEYWORD, a DESC_TYPE, and
CONTENTS, where

   KEYWORD is a one-to-four character AEKeyWord identifying the
parameter ARG is to become (I think that in trying to call a script
by name that this should be obj, but the MPII Tech Note is unclear
to me on this; I have also tried ----, and also think this may be
right.  Help!)

   DESC_TYPE is a one-to-four character DescType describing the type
of data to be contained in the parameter (I try TEXT and obj here,
but get different error messages.  Using obj, I get the message that
I am using an unsupported descriptor type.  Using TEXT, I get
AESendError -609, which is terribly descriptive.... :-)

   CONTENTS is a string representation of the data, which I take to
be the name of the script I am trying to run.

The MPII Tech Note tells me that Do Script takes a direct parameter
containing either the text of a script (typeText), an alias to a
text file containing the text of a script (typeAlias), or an object
specifier for a script in the open document (typeObjectSpecifier).
How this relates to the ARG_LIST above is less than crystal clear to
me.

Any suggestions?

>Sending it the Do Script AppleEvent is not just a matter of sticking
>the script name in. The Do Script is a AppleEvent Object, so it expects
>the more complex Object Specifier for identifying a script within a
>MP II settings document.
>
>Lastly, Apple changed the AERegistery for Get and Set Data after
>MicroPhone II shipped. A critical keyword changed from 'kdat' to 'data'
>or something akin to that. (Once again I'm working from memory here, so
>don't take those keywords for absolutes) If you start working with
>Get and Set Variable events for MP II, you'll want to be aware of this.
>
>I'm told that Get and Set Variable in MP II v4.0.2 will have been changed
>to reflect the lastest incarnation of Get and Set Data the AERegistry.
>
>--Dave
>
>-----------------------------------------------------------
>Dave Newman                 |  AOL:      AFC Tinman
>Artillery Spotter           |  ALink:    TINMAN
>Notable Technologies, Inc.  |  CIS:      70743,3323
>Voice:    510.208.4449      |  internet: daven@notable.com
>FAX:      510.444.4493      |  
>-----------------------------------------------------------


-- 
Ralph Brandi     ralph@mtunp.att.com     att!mtunp!ralph

I cannot receive mail until the morning of September 8th; mail sent
before then may bounce.