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 protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to