views:

23

answers:

1

my code looks like this

tell application "Firefox"
 open location "http://rubyquicktips.tumblr.com/"
end tell

but if I have Firefox open, the link will open in a new tab. But I want the link to open in a new Firefox window. How can I accomplish that?

+1  A: 

try this...

tell application "Firefox"
    OpenURL "http://rubyquicktips.tumblr.com/"
end tell

or try this...

tell application "Firefox" to activate
tell application "System Events" to keystroke "n" using command down
tell application "Firefox"
    OpenURL "http://rubyquicktips.tumblr.com/"
end tell
regulus6633
OpenURL doesn't work with Leopard...but your second tip is brilliant!
tabaluga