I am writing an AppleScript in which I need to get the number of the current window of Google Chrome and open a new tab in it. I want something like this (pseudo code):
set curWindNum to the current window of Google Chrome // returns something like "window 4" or just "4"
open a new tab in window curWindNum
How do I do this?