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

Campbell.Martin

macrumors newbie
Original poster
Oct 9, 2010
2
0
so im trying to write a script that will open a new window in safari, seems simple enough but if the app is closed then it opens 2 windows at the launch.
is there a way to get round this?

by the way this is what i have now which causes the double window problem, im pretty new to applescripts so any help will be great

set inactive to false
tell application "Safari"
if inactive then activate
if not inactive then make new document
end tell
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.