Re: scripting in Safari
Re: scripting in Safari
- Subject: Re: scripting in Safari
- From: "Gary (Lists)" <email@hidden>
- Date: Sun, 23 Dec 2007 13:47:33 -0500
- Thread-topic: scripting in Safari
"Michelle Steiner" wrote:
> On Dec 23, 2007, at 10:35 AM, Mark J. Reed wrote:
>
>> Note that your Bookmarks.plist file may not be stored in XML (e.g.
>> if you've upgraded from prior versions of OS X/Safari). The
>> Property List Tools osax works with both binary and XML formats;
>> generic XML parsers require the latter.
>
> How does that OSAX compare to the XML suite in the Standard Additions
> OSAX?
The Smile (Satimage) product handles XML, XML DOM, XPATH, XSLT, p-lists,
just to continue a comparison. I suspect that the LNSW and Satimage
versions are primarily a matter of style/taste with the specific language,
rather than large differences in capability.
The Safari bookmarks file, at least at the time I wrote that Safari
bookmarks script (approximately the end of April, 2006), *was* XML (even if
it had a ".plist" extension) and did not require a binary Plist parser.
Presently, my Safari bookmarks file is a binary Plist. That's different,
then, and would suggest the earlier script is not directly useful for
present-day Safari.
I have not used the latest Apple XML tools, part of Standard Additions, so I
don't know their utility value.
The current version of the Satimage XML tool will handle Plists as records,
records to Plists, and XML. There are a variety of command Suites, for each
purpose.
The most essential point about this post's topic (for the OP) is that Safari
bookmarks ARE able to accessed/written by AppleScript, using an intermediary
XML and/or Plist tool...and I specifically use the Satimage version, but
this should not matter at all and the user should use whatever she is most
familiar/comfortable with.
--
Gary
_______________________________________________
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