Re: scripting in Safari
Re: scripting in Safari
- Subject: Re: scripting in Safari
- From: "Gary (Lists)" <email@hidden>
- Date: Sun, 23 Dec 2007 12:19:43 -0500
- Thread-topic: scripting in Safari
"Clint Hoxie" wrote:
> I've played around with a bookmark opening script and have found a
> solution, but it is tedious. Essentially, I have to edit the script
> every time I add or subtract a bookmark that I want to view daily.
>
> I know I asked this before, but I'll ask, again. Is there any way to
> use AS to operate on the bookmarks within Safari?
As Mark has surmised, the best way to interact with your Safari bookmarks is
via their XML storage.
I have a downloadable script that allows one to add bookmarks to Safari,
without Safari even being opened/running, and it works solely with the XML
(Plist) storage.
You have lots of flexibility this way. It is, perhaps, even better than a
straight-on AS interaction since the XML is able to be utilized by many
other kinds of applications/scripts.
You can download that mentioned Safari script here:
<http://accidentaltechie.org/dru/?q=project/addsafaribookmark>
You will need the Satimage XML osax, but a download link is provided at the
above URL.
Unfortunately, that version of the script is read-only and I am travelling
and so can not provide an readable version here, right now. But, it does
demonstrate that the Safari bookmarks are scriptable, and that you 'morning
reading' can be achieved.
When I return from vacation, I will provide a readable version. (It's on
another storage disk. Sorry.)
Go ahead and duplicate your Safari bookmarks file so that you can play
around with some XML tools (Satimage XML lib osax). That will require that
you are minimally familiar with XML, of course.
I find the Satimage tool much more powerful and practical (I use Smile as
the engine for all AppleScripting) than the LNSW version, but either will
work just fine.
--
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