How do I instruct Applescript to open a new Firefox window with a link?

后端 未结 4 2134
慢半拍i
慢半拍i 2021-02-20 02:46

my code looks like this

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

but if I have Firefox open, t

4条回答
  •  北恋
    北恋 (楼主)
    2021-02-20 03:49

    this works, but opens your welcome site in first tab...

    tell application "Firefox" to activate
    tell application "System Events" to keystroke "n" using command down
    delay 3
    tell application "Firefox"
        open location "http://rubyquicktips.tumblr.com/"
    end tell
    

提交回复
热议问题