Re: names of a record's items
Re: names of a record's items
- Subject: Re: names of a record's items
- From: Shane Stanley <email@hidden>
- Date: Fri, 11 Apr 2014 09:38:33 +1000
On 11 Apr 2014, at 3:30 am, 2551 <email@hidden> wrote:
I guess it’s disappointing that this has never been addressed within AppleScript itself
Well yes, but I don't know that it would be high on my wishlist. I mean, how many users need to coerce a record to text? More useful would the ability to build labels on the fly, which we can at least now do via an ASObjC-based lib:
use framework "Foundation"
on recWithLabels:theKeys andValues:theValues return (current application's NSDictionary's dictionaryWithObjects:theValues forKeys:theKeys) as record end recWithLabels:andValues:
And within the limitations I outlined earlier, you can get the user labels:
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden