• 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
NSAppleEventDescriptor/AEKeyword question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAppleEventDescriptor/AEKeyword question


  • Subject: NSAppleEventDescriptor/AEKeyword question
  • From: Matt Gemmell <email@hidden>
  • Date: Sat, 7 Sep 2002 01:39:34 +0100

Hi there,

I've used the new NSAppleScript class to retrieve BBEdit's html preferences, by executing the AppleScript:

tell application "BBEdit 6.5" to get html preferences

This returns the correct NSAppleEventDescriptor, with 12 items in it. I need to access two of those items, specifically the "default file name" and "root directory" items. I presume I need to use NSAppleEventDescriptor's -descriptorForKeyword: instance method (I don't want to use -descriptorAtIndex: in case the items are returned in a different order in a future version of BBEdit). The -descriptorForKeyword: method takes an AEKeyword as its argument.

Now, I'm not exactly sure what an AEKeyword is, or what I need to use for it in this situation. I've opened BBEdit's scripting dictionary in Script Debugger, viewing it as "AppleEvents", and I see that the "default file name" property corresponds to the code "HDfn", and the "root directory" property corresponds to "HRdr". I'm not sure if that's relevant here or not.

Could someone enlighten me as to how to construct appropriate AEKeywords?


Thanks for any response,
-Matt

--
Matt Gemmell
Scotland Software
http://www.scotlandsoftware.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: how to centralize functionality more elegantly?
  • Next by Date: Re: Dealing with Very Slow NSViews
  • Previous by thread: Re: cocoa-dev digest, Vol 2 #1211 - 14 msgs
  • Next by thread: Re: NSAppleEventDescriptor/AEKeyword question
  • Index(es):
    • Date
    • Thread