• 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
Looking for clarification on Applescript event handlers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Looking for clarification on Applescript event handlers


  • Subject: Looking for clarification on Applescript event handlers
  • From: Chris Backas <email@hidden>
  • Date: Sun, 10 Aug 2003 16:43:44 -0400 (EDT)
  • Priority: Normal

Hello all; sorry for the cross post, but I wasn't sure if my knowledge gap fell more on the Cocoa or the Applescript side.

The NSAppleScript class has an executeAppleEvent method, which takes an AppleEventDescriptor as an argument. I've seen on the Applescript side that one makes an event handler something like:

on <some event>(<some argument>)
<do stuff>
end <some event>

My confusion is, does that single AppleEventDescriptor I pass encompass both <some event> and <some argument> ? If I want to pass a list to a handler in an applescript, do I need to declare my own kind of
handler someplace with its own ID, or are there preexisting ones that I'm meant to utilize?

Thanks for any help
Chris Backas
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Looking for clarification on Applescript event handlers
      • From: Christopher Nebel <email@hidden>
    • Re: Looking for clarification on Applescript event handlers
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: Mail.app script -- please test
  • Next by Date: More Mail fun
  • Previous by thread: Re: Mail.app script -- please test
  • Next by thread: Re: Looking for clarification on Applescript event handlers
  • Index(es):
    • Date
    • Thread