• 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 White <email@hidden>
  • Date: Mon, 06 Mar 2006 18:38:46 -0500
  • Thread-topic: another Safari question

Title: Re: another Safari question
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

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

  • Prev by Date: Re: another Safari question
  • Next by Date: Script to set a folder's contents to Read/Write
  • Previous by thread: Re: another Safari question
  • Next by thread: Re: another Safari question
  • Index(es):
    • Date
    • Thread