At 9:12 AM +1000 8/28/01, Michael J. Lew wrote:
>However, this Transcript fails, returning only "Got error -1708 when sending Apple
>event" in the result:
>
>put "the count of messages of mailbox " & quote & "In" & quote into myReq
>request myReq from application "Eudora"
>put it & return & the result
>
>I can successfully use the do field as applescript method in the Rev 1.1 alpha, and
>will. However, I would like to understand the request command (and related) better.
Unless you really need the speed (apple events are faster than applescripts by a
significant margin, but generally both happen in a fraction of a second) you'll be
better off sticking with AppleScript. It's _much_ easier to understand than apple
events.
In this case, the request command sends a particular apple event that not all
applications understand. I don't think Eudora does, for example. You could probably
accomplish what you want with the Send to Program command, but I don't know what the
apple event equivalent to 'count messages of mailbox "In"' is.
Regards,
Geoff