• 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
Apple Event parameter types in Cocoa scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Apple Event parameter types in Cocoa scripting
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Using Delegation in communicating data between two controllers....
  • Next by Date: Re: Apple Event parameter types in Cocoa scripting
  • Previous by thread: Re: Using Delegation in communicating data between two controllers....
  • Next by thread: Re: Apple Event parameter types in Cocoa scripting
  • Index(es):
    • Date
    • Thread