• 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
Re: AppleScript Record and NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScript Record and NSDictionary


  • Subject: Re: AppleScript Record and NSDictionary
  • From: has <email@hidden>
  • Date: Wed, 22 Jul 2009 17:59:33 +0100

Steve Cronin wrote:

From my Cooca app I want to call an AppleScript with several
parameters one of which is an AppleScript record.

I've got everything about calling and return values working smoothly.

What I can't seem to get is how to create that parameter record.

ObjC-appscript's AEMCodecs class provides two-way mappings between NSDictionaries and other common Foundation classes and their NSAppleEventDescriptor equivalents. There's also an example project in the svn repository showing how it can be used in conjunction with NSAppleScript. When specifying record keys in your NSDictionary, use AEMType instances to signify AppleScript-defined property names, and NSStrings for user-defined identifiers.


HTH

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: UUID method Garbage Collection safe?
  • Next by Date: List classes in Bundle?
  • Previous by thread: Re: AppleScript Record and NSDictionary
  • Next by thread: Re: Missing vertical scroll bar - resolved
  • Index(es):
    • Date
    • Thread