• 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: Axel Luttgens <email@hidden>
  • Date: Wed, 09 Apr 2014 18:56:15 +0200

Le 9 avr. 2014 à 17:38, Luther Fuller a écrit :

> [...]
> The "System Events" dictionary contains the "Property List Suite" which looks tantalizing close to doing this.
> [...]
> Either I'm not reading the dictionary correctly or it's broken.
> I found no way to use the Property List Suite to get the name of a record item.
> Still, the dictionary looks like I ought to be able to do this.

Indeed... ;-)

	set rec to {a:999, b:"text", c:{1, 2}}
	tell application "System Events"
		name of property list items of (make new property list item with properties {value:rec})
	end tell
	--> {"a", "b", "c"}

Axel


 _______________________________________________
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


  • Follow-Ups:
    • Re: names of a record's items
      • From: Luther Fuller <email@hidden>
References: 
 >Re: names of a record's items (From: Luther Fuller <email@hidden>)

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