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
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