Re: Safari, make new document only if none open ?
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.
property winBounds : {202, 22, 1237, 896} property urlList : paragraphs of "http:google.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