Monday, December 20, 2010

Open a new tab with AppleScript in Chrome

tell application "Google Chrome"
set myTab to make new tab at end of tabs of window 1
set URL of myTab to "http://google.com"
end tell


more AppleScript Chrome goodies at http://laclefyoshi.blogspot.com/2010/10/google-chrome-ver.html

4 comments:

  1. Are you aware of the fact that this doesn't work? Maybe it did once, but with 11.0.696.57 it sets the tab's URL apparently but doens't load that page

    ReplyDelete
  2. Worked for me. I took out the "set URL..." because the new tab screen on chrome is good.

    ReplyDelete
  3. Works well for me in 25.0.1364.160

    ReplyDelete