Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Entering scripts in raw format



I'm new to AppleScript unfortunately.

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. I've discovered the chevron notation, as in

  tell application "xyz"
     <<event xyz>> given <<class xyz>:...
  end tell

which works fine, except for one thing. If the event sends a result back I don't seem to be able to pick it up. If I try to access the result variable it tells me it's not defined.

It's quite difficult to track down documentation or examples of this angle bracket notation (unfortunately "given" and "event" are such common words they're useless on a web search!). Does anyone have any pointers to some examples of sending arbitrary Apple Events like this...?

Thanks,

-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:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/mailman//archives/applescript-users

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.