applescript parsing: list of record types
applescript parsing: list of record types
- Subject: applescript parsing: list of record types
- From: Ken Victor <email@hidden>
- Date: Mon, 22 Oct 2007 09:14:06 -0700
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:
This email sent to email@hidden