• 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
Re: names of a record's items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:

on returnLabelsFromRec:aRecord
return (current application's NSDictionary's dictionaryWithDictionary:aRecord)'s allKeys() as list
end returnLabelsFromRec:

-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

References: 
 >Re: names of a record's items (From: Luther Fuller <email@hidden>)
 >Re: names of a record's items (From: Alex Zavatone <email@hidden>)
 >Re: names of a record's items (From: Luther Fuller <email@hidden>)
 >Re: names of a record's items (From: Shane Stanley <email@hidden>)
 >Re: names of a record's items (From: 2551phil <email@hidden>)
 >Re: names of a record's items (From: Shane Stanley <email@hidden>)
 >Re: names of a record's items (From: Shane Stanley <email@hidden>)
 >Re: names of a record's items (From: Alex Zavatone <email@hidden>)
 >Re: names of a record's items (From: "koenig.yvan" <email@hidden>)
 >Re: names of a record's items (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: names of a record's items
  • Next by Date: Re: Recent Items
  • Previous by thread: Re: names of a record's items
  • Next by thread: Re: names of a record's items
  • Index(es):
    • Date
    • Thread