• 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: Keeping a text-entry in the background, or a work-around
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keeping a text-entry in the background, or a work-around


  • Subject: Re: Keeping a text-entry in the background, or a work-around
  • From: Malcolm Fitzgerald <email@hidden>
  • Date: Fri, 30 Nov 2007 17:50:24 +1100


On 30/11/2007, at 4:08 PM, Allan McCoy wrote:

Haven't actually played with this, but I'm wondering if the preferences for tabs might be different on your machine? Specifically, on the General tab in Safari prefs, Open links from applications: in a new tab in the current window (which in turn depends on tabs being turned on, but I assume we wouldn't be having this discussion if you didn't have that...)

I wondered about that too but as I had moved from one machine to another I thought that there may be other factors.


You are right.

Safari --> preferences --> select tabs and windows as they are created

ON :  all URLs appear in tabs in one window
OFF: each URL will appear in a new window





email@hidden on November 29, 2007 at 9:28 PM -0600 wrote:
From: Malcolm Fitzgerald <>
Subject: Re: Keeping a text-entry in the background, or a work-around
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset="us-ascii"


On 30/11/2007, at 10:48 AM, Clint Hoxie wrote:

> I've now put together three tips and have gotten what I want, which
> is a new window, with all the URLs from my list populated into new
> tabs. It leaves a homepage tab as the first tab (so I get three
> tabs out of a list of 2), but I can live with that. Thanks, everyone.



On Nov 29, 2007, at 5:03 PM, Malcolm Fitzgerald wrote:


> Does the code below generate tabs in a single window for you? > > For me it generates a new window with each step through the loop > which is why we had to muck around with system events in older > browsers.


On 30/11/2007, at 11:41 AM, Clint Hoxie wrote:

> Yes, it does. As i described, it opens a new window with the first
> tab set to homepage, then loads the list of URLs into following tabs.



I've just moved over to a newer machine. OS X 10.4.11 Safari 3.0.4. The code quoted at bottom still produces a new window with every step. Are you running 10.5?

What works for me is:

set urlList to {"http://dogpile.com";, "http://www.rediscovermt.com/"}
tell application "Safari"
set win to (make new document at beginning with properties {URL:item
1 of urlList}) -- becomes window 1
set urlList to rest of urlList
repeat with i in urlList
tell window 1
make new tab with properties {URL:i}
end tell
end repeat
end tell



Malcolm Fitzgerald 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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: leopard date bug?
  • Next by Date: Re: Keeping a text-entry in the background, or a work-around
  • Previous by thread: Re: Scripting Leopard terminal
  • Next by thread: Re: Keeping a text-entry in the background, or a work-around
  • Index(es):
    • Date
    • Thread