• 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
Human readable event codes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Human readable event codes


  • Subject: Human readable event codes
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 12 May 2008 19:32:15 +0100

Hello list

A task in my app executes a script, say the one liner below:

system info

This generates a record, each item identified by an event code.
The individual events within the record are coerced into an Objective-C dictionary which is returned to the GUI.
The GUI displays the dictionary, both keys and objects.
The displayed keys are merely the alphabetic equivalents of the event codes.

When Script Editor executes the same script it is able to resolve the same event codes into a much more human readable form.
Ideally I would like my app to be able to perform this feat for the common event codes.

So, how does Script Editor do this?

NSAppleEventDescriptor doesn't seem to have an appropriate method (but I could be blind or stupid or both).
Does it locally cache (via a plist say) the AppleScript event codes as published at AppleScript Terminology and Apple Event Codes
Or does it parse the various core application and scripting addition sdefs, scriptsuites and aetes.

Any help would be appreciated.

Jonathan
 _______________________________________________
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/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: Simple newbie question
  • Next by Date: Simple newbie question (bug)
  • Previous by thread: Re: Simple newbie question
  • Next by thread: Simple newbie question (bug)
  • Index(es):
    • Date
    • Thread