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 -------------------------------------------------------------------------------------------
|