Apple Event parameter types in Cocoa scripting
Apple Event parameter types in Cocoa scripting
- Subject: Apple Event parameter types in Cocoa scripting
- From: Martin Wierschin <email@hidden>
- Date: Fri, 14 Aug 2009 14:51:03 -0700
Hello all,
I'm trying to add an Apple Event to my Cocoa application that accepts
a pure data parameter (AE constant typeData = 'tdta'). In my
".scriptSuite" file I've tried setting the "Type" to "NSData",
"NSAppleEventDescriptor", "tdta", "any", and "****". All of them
trigger something like the following log output on launch:
.scriptSuite warning for argument 'xxxx' of command 'Whatever' in
suite 'MyApp': 'NSData' is not a valid type name.
How do I get Cocoa to give me an instance of NSData in the
"evaluatedArguments" dictionary? If I upgrade my whole scripting
information to the new "sdef" file format, is this problem solved? Or
do I have to resort to Carbon's AEInstallEventHandler just for this?
That would make me unhappy.
~Martin
_______________________________________________
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