• 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: Safari, make new document only if none open ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari, make new document only if none open ?


  • Subject: Re: Safari, make new document only if none open ?
  • From: Christopher Stone <email@hidden>
  • Date: Sun, 6 Sep 2009 18:24:59 -0500

On Sep 06, 2009, at 10:19, Dale Saukerson wrote:
I want to create a script to do the following:
1-Open safari if not open
2-Bring it to front
3-Open new browser window if none already open
4-Set window bounds to suite my needs on a 23 inch LCD
______________________________________________________________________

Hey Dale

Here's a basic "morning coffee" script.

--
Chris


property winBounds : {202, 22, 1237, 896}
property urlList : paragraphs of "http:google.com
http://versiontracker.com
http://macupdate.com"

tell application "Safari"
activate
set nWin to make new document at end with properties {URL:item 1 of urlList}
tell front window
set bounds to winBounds
repeat with ndx from 2 to (get length of urlList)
set tb to make new tab at end with properties {URL:(get item ndx of urlList)}
end repeat
-- set current tab to last tab
end tell
end tell
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Safari, make new document only if none open ? (From: Dale Saukerson <email@hidden>)

  • Prev by Date: Re: new (I think) time question
  • Next by Date: Re: date/Snow Leopard changed
  • Previous by thread: Re: Safari, make new document only if none open ?
  • Next by thread: new (I think) time question
  • Index(es):
    • Date
    • Thread