• 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: scripting in Safari
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scripting in Safari


  • Subject: Re: scripting in Safari
  • From: Clint Hoxie <email@hidden>
  • Date: Sun, 23 Dec 2007 12:25:21 -0700

Thanks, Gary. I'll look forward to the readable version, as learning how this stuff works is part of the fun.

Clint


On Dec 23, 2007, at 10:19 AM, Gary (Lists) wrote:

"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 (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Re: scripting in Safari (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: scripting in Safari
  • Next by Date: Re: Searching events in iCal
  • Previous by thread: Re: scripting in Safari
  • Next by thread: Re: Searching in iCal
  • Index(es):
    • Date
    • Thread