• 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: another Safari question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: another Safari question
      • From: kai <email@hidden>
References: 
 >Re: another Safari question (From: Bill White <email@hidden>)

  • Prev by Date: Re: IPTC info
  • Next by Date: Re: IPTC info
  • Previous by thread: Re: another Safari question
  • Next by thread: Re: another Safari question
  • Index(es):
    • Date
    • Thread