Re: scripting in Safari
Re: scripting in Safari
- Subject: Re: scripting in Safari
- From: Clint Hoxie <email@hidden>
- Date: Sun, 23 Dec 2007 12:23:22 -0700
Mark,
Thanks for the extra help. This will give me something more to play with.
Clint
On Dec 23, 2007, at 9:29 AM, Mark J. Reed wrote: An OSAX is a Scripting Addition. Different words for the same thing. Pretty sure the SA in OSAX stands for Scripting Addition, but I'm not sure. In any case, it's basically an AppleScript plugin.
I'm using the Property List Tools addition, version 1.0.6, available for free here:
http://www.latenightsw.com/freeware/PListTools/index.html
Just download it and drop the osax file into /Library/ScriptingAdditions.
Once you've done that, this script works for me. It opens up every bookmark in the bookmarks folder "OpenMe", each in its own tab:
set folderToOpen to "OpenMe" set plistFile to (path to home folder as text) & "Library:Safari: Bookmarks.plist"
set bookmarks to (read property list file plistFile) repeat with child in (|Children| of bookmarks) if |Title| of child is folderToOpen then set toOpen to |Children| of child exit repeat end if end repeat tell application "Safari" to tell window 1 repeat with bookmark in toOpen make new tab at end of tabs with properties {URL:|URLString| of bookmark} end repeat end tell
-- Mark J. Reed <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