Grab the "Active" Window in Applescript
Solution 1:
It's been a while since I played with Applescript, but I think it's just 'window 1' [without quotes] for the frontmost window.
It's been a while since I played with Applescript, but I think it's just 'window 1' [without quotes] for the frontmost window.