Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

applescript parsing: list of record types



for one of my script commands specified in my sdef file, i've specified the direct parameter to be of type="my record type" list="yes" where "my record type" is defined in the sdef as a record-type element.

and if i turn i AEDebugReceives, i can see the list of records coming in. however, cocoa scripting complains that it can't make the list into a "my record type".

i've discovered that if i specify in my sdef to take a list of type="any", i can then get the data, but i get it as an aedesc, which i then have to parse myself. and the documentation in the script directory seen by the user is misleading.

have i encountered a (known) limitation of cocoa scripting? or perhaps a bug? is there perhaps another way to write my sdef so that i don't have to parse the sdef myself? or is there perhaps some method i can/should override in NSScriptCommand to properly handle this?

thanx,
ken

ps. i believe this is a cocoa problem, not an applescript problem; hence the posting here instead of some other list.
_______________________________________________


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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.