• 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: getting a list of labels from a record?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting a list of labels from a record?


  • Subject: Re: getting a list of labels from a record?
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 03 Jun 2013 18:45:18 -0500

Hallo Emmanuel,

On Jun 03, 2013, at 05:28, Emmanuel LEVY <email@hidden> wrote:
Sorry, not sure I replied in time.

I survived.  :)

PlistOpen accepts, either a path (under any form), or a string of XML data, that is some string starting with "<".

Actual syntax is always helpful.  While you may have done this a millions times and find it old hat, someone new to these osaxen may the syntax hopelessly confusing.  I for one learn much more effectively when I can see working examples.

This works:

# A text-format plist:
set plistAlias to alias ((path to home folder as text) & "test_directory:plist_files_text:Rename100.plist")
set plistStr to read plistAlias
set _plist to PlistOpen from string plistStr
set _keys to PlistGetKeys (PlistNew _plist)
PlistClose _plist
_keys

I tried something like (PlistOpen from string plistStr) a while back, and it didn't compile.  Apparently I was doing something wrong at the time.

--
Take Care,
Chris

-------------------------------------------------------------------------------------------
Tags: @Satimage, @XMLLib.osax, @Plist, @PlistOpen, @PlistGetKeys, @Christopher, @Stone
-------------------------------------------------------------------------------------------

 _______________________________________________
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: getting a list of labels from a record?
      • From: Shane Stanley <email@hidden>
References: 
 >Re: getting a list of labels from a record? (From: Emmanuel LEVY <email@hidden>)

  • Prev by Date: Re: getting a list of labels from a record?
  • Next by Date: Re: getting a list of labels from a record?
  • Previous by thread: Re: getting a list of labels from a record?
  • Next by thread: Re: getting a list of labels from a record?
  • Index(es):
    • Date
    • Thread