Re: Entering scripts in raw format
Re: Entering scripts in raw format
- Subject: Re: Entering scripts in raw format
- From: Rolf Howarth <email@hidden>
- Date: Thu, 4 Jan 2007 17:56:16 +0000
Thanks for the reply.
At 09:38 -0800 4/1/07, Jon Pugh wrote:
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!
-Rolf
--
Rolf Howarth
Square Box Systems Ltd
Stratford-upon-Avon UK.
http://www.squarebox.co.uk
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden