Ohm my! That is complicated. Here is what Travis and I came up
with,. Or maybe it was totaly him.
Jane
*begin script*
tell application "Safari"
open location "http://www.npr.org/programs/morning"
end tell
tell application "Safari"
open location "http://www.livejournal.com/users/talvinamarich"
end tell
tell application safari"
open location "http://www.livejournal.com/users/kingofthewho"
end tell
*end script*
Jane
On Mar 9, 2006, at 9:29 PM, Cheryl Homiak wrote:
Probably this has already been figured out, but I was interested in
trying to load two or more windows in safari. I did NOT write this
script!!! I found this searching google; actually it's a
combination of a couple of things I found in mac-hints. You can do
the script as shown below for opening multiple windows or change
the word "window" to "tab" and open multiple tabs in the same
window. Whatever is set as your startup website will also come up,
so you can either keep that as an addition or put in one less url
and let the startup choice in safari be one of your windows without
including it in the script. The group of windows given here is the
group that was in the main script from which I copied; be careful
when copying to your script editor to keep the line with the urls
intact or script editor will complain about expecting expression
and finding end of line; of course you cn add, subtract, and
substitute urls as you like, even have a few different scripts for
loading different groups of urls.. Also you must have "enable
access for assistive devices" checked in Universal Access in System
Preferences.
Hth.
Script starts below this line--------------
set the URL_list to {"http://www.apple.com/applescript/", "http://
www.apple.com/macosx/", "http://www.apple.com/itunes/", "http://
www.apple.com/iphoto/", "http://www.apple.com/safari/"}
tell application "Safari"
activate
repeat with i from 1 to number of items in URL_list
set this_URL to item i of URL_list
my new_window()
set the URL of document 1 to this_URL
end repeat
end tell
on new_window()
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
click menu item "New Window" of menu "File" of menu bar
1
end tell
end tell
end new_window
End of Script-------------------
--
Cheryl
"Where your treasure is,
there will your heart be also".