Scripting A New Browser Window

How do I make a new browser window in DA? Judging from my fruitless and frustrating attempts to use plain AppleScript, I’m guessing that it’s gonna take a JavaScript.

Is there any chance that we will be able to perform this presumably simple task with vanilla object model AS in a future version? It’d sure be good for my poor ol’ tattered nerves if it happened sometime.

There are several ways to open a new browser, the easiest being…


tell application "DEVONagent"
	open URL "http://www.apple.com"
end tell

Thanks for your quick reply. What I want to do is test for the existence of a browser with a specified name, and make a new one with that name if it does not exist. I was trying to use the make verb following "if not exists window x then " etc, with no luck.

Thanks,

Marcus

You can’t set the name of browsers, the name is automatically set based on the active tab and its page. However, this example does more or less what you want to do:


tell application "DEVONagent"
	if not (exists browser named "Apple") then
		open URL "http://www.apple.com"
	end if
end tell