Re: another Safari question
Re: another Safari question
- Subject: Re: another Safari question
- From: Bill Planey <email@hidden>
- Date: Tue, 07 Mar 2006 10:50:06 -0600
- Thread-topic: another Safari question
Title: Re: another Safari question
Thanks Bill,
Works like a charm. One thing I noted – it only works properly if Safari is set as the default browser to the system. At first, Firefox was set as my default browser, and it opened up the pages (separate windows) in Firefox.
Bill
On 3/6/06 5:38 PM, "Bill White" <email@hidden> wrote:
On 3/6/06 5:13 PM, Bill Planey <email@hidden> wrote:
> I want to be able to program the opening of multiple URLs simultaneously in
> tabs (not in individual pages). How to tell Safari to open a URL within a tab
> rather than as a new window?
This works for me, with Safari set as my default browser:
---
property someURLs : {"http://abc.com", "http://nbc.com", "http://cbs.com"}
tell application "Safari" to activate
tell application "System Events"
tell process "Safari"
repeat with aURL in someURLs
click menu item "New Tab" of menu "File" of menu bar 1
open location aURL
end repeat
end tell
end tell
---
HTH,
Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
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:
This email sent to email@hidden