At 4:52 PM +0000 1/4/07, Rolf Howarth wrote:
>I'm trying to send some Apple Events to an application that
supports events but doesn't have a scripting dictionary, using the
osascript command.
According to the AppleScript Language Guide (page 127) "this guide
does not provide detailed documentation for raw syntax."
Oh well, par for the course I suppose!
However, if I were you, I'd pester the developer of the app for
documentation on how to use their scripting support. If they tested
it, then they have samples. If they didn't test it, then it
probably doesn't actually work.
Well, the events ARE documented - in a header file - and I guess I
can write some native code to receive them. For example, the relevant
portion is
@result kXMLDataKey The XML data, represented as a UTF-8 string
(typeUTF8Text)
...
#define kXMLDataKey 'xmlD'
I'd prefer not use C++ for this if I can help it though. It's
frustrating that I can get most of the way there with AppleScript,
just not read the result!