Re: AppleScript Record and NSDictionary
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