• 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
applescript parsing: list of record types
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: applescript parsing: list of record types
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: Re: Text wrap in NSTextView-> how to get wrapped NSString
  • Next by Date: Re: telling when a directory is really a bundle
  • Previous by thread: Re: Two Questions on NSStrings <-> bytes
  • Next by thread: Re: applescript parsing: list of record types
  • Index(es):
    • Date
    • Thread