• 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: Rob Stott <email@hidden>
  • Date: Sun, 23 Dec 2007 11:31:45 +0000


On 23 Dec 2007, at 08:57, Clint Hoxie wrote:

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?

Hi Clint,

I don't think you can do it directly in AppleScript (unless someone knows better!) but there are a couple of workarounds I can think of. You might be able to do this using UI Scripting - a nasty solution, I admit, but if it gets the job done then so be it... There's some info that you might find useful here;

http://www.macosxhints.com/article.php?story=20040917211924222

...specifically the sample code.

Alternatively, if you look in ~/Library/Caches/Metadata/Safari/ Bookmarks/ (in Leopard anyway - can't check here for previous versions) then you'll find a heap of bookmark files. By reading the files you can get URL and name of each bookmark.

I can't see a way of determining which folder each bookmark lives in, although that info clearly must be stored *somewhere*. I suppose you could bodge it by changing the name of your bookmarks. So for example, prefix the name of each bookmark to run on Tuesday with "Tues - " or something.

I hope this gives you some clues at least!

Regards
Rob















Important: This message is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination or copying of the communication is strictly prohibited. If you have received this communication in error, please notify the writer immediately by telephone and return the original message via postal service to the writer's attention at the above address. Thank you.

Watt Gilchrist Limited. Albion Mills, Albion Road. Bradford, BD10 9TQ
Registered in England
873405

_______________________________________________
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: scripting in Safari
      • From: Clint Hoxie <email@hidden>
    • Re: scripting in Safari
      • From: "Mark J. Reed" <email@hidden>
References: 
 >scripting in Safari (From: Clint Hoxie <email@hidden>)

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