Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Infrared

macrumors 68000
Original poster
What's the most browser windows you've had open at once?

I got up to around 760 Firefox windows under Tiger. Then it
crashed 🙂
 
:apple:+N

HOLD IT DOWN!

Too tiring lol 🙂

This is what I have so far (for Safari this time):

Code:
tell application "System Events"
	tell application process "Safari"
		click menu item "New Window" of menu "File"
	end tell
end tell

I haven't tested it yet, but that'll do one window, I think.
So Just another 759 to go then 🙂
 
Ok, the previous script was rubbish.
This one is better and seems to work:

Code:
delay 4

tell application "Safari"
	activate
end tell

tell application "System Events"
	tell process "Safari"
		repeat 200 times
			click menu item "New Window" of menu "File" of menu bar 1
		end repeat
	end tell
end tell

That's for 20 windows.

If you want to try it, you'll need "Enable access for assistive devices"
selected in the Universal Acesss preference pane.

Hmm... I seem to have some issues. I just had 200 Safari windows
open and now Firefox has got into some weird state in which it is
not visible and unquittable. I think the Dock is feeling ill.
 
I opened 260 Safari windows and expose choked... It wouldn't show all of them and was very stuttery.

2.4GHz Core2Duo iMac with 4GB RAM.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.