• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Entering scripts in raw format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Entering scripts in raw format


  • Subject: Entering scripts in raw format
  • From: Rolf Howarth <email@hidden>
  • Date: Thu, 4 Jan 2007 16:52:23 +0000

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

This email sent to email@hidden
  • Follow-Ups:
    • RE: Entering scripts in raw format
      • From: Olof Hellman <email@hidden>
    • Re: Entering scripts in raw format
      • From: Jon Pugh <email@hidden>
    • Re: Entering scripts in raw format
      • From: Jon Pugh <email@hidden>
  • Prev by Date: Mounting server
  • Next by Date: Re: Entering scripts in raw format
  • Previous by thread: Mounting server
  • Next by thread: Re: Entering scripts in raw format
  • Index(es):
    • Date
    • Thread