Re: newbie question in Safari
Re: newbie question in Safari
- Subject: Re: newbie question in Safari
- From: Chet Goetz <email@hidden>
- Date: Thu, 9 Oct 2003 08:27:30 -0500
--
On Wednesday, October 8, 2003, at 10:24 PM, Glenn wrote:
Just an FYI, do you know about putting your bookmarks in a folder and
setting the "Auto-Tab" checkbox (in the "Show All Bookmarks" window)?
::Glenn
Yep, i've got a few folders labeled as auto-tabs.
Anyways, i finally got the script to work. It's like Safari needed to
be showed what to do. If I simply clicked once on the "Bookmarks" menu,
then switched to Script Editor and ran the script, it would work.
However, if I didn't show Safari what a click was like and simply tried
to run the script, it wouldn't work. It would simply activate Safari.
So, here's the script that works: ("--" at end of each line)
--
tell application "Safari" to activate --
tell application "System Events" --
tell process "Safari" --
click menu "Bookmarks" of menu bar 1 --
click menu item "Open in Tabs" of menu "Bookmarks" of menu bar 1 --
end tell --
end tell --
--
Now, I've moved the links that I want open to the "root level" of the
Bookmarks menu, because the same script with the following nested
folders doesn't work:
--
click menu item "Open in Tabs" of menu "chet's links" of menu
"Bookmarks Bar" of menu "Bookmarks" of menu bar 1 --
--
Does anyone know why it won't work? I'm really curious, now that I've
put some time into it. Is there any other way to open bookmarks?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.