Ok, I realize this is asking for the impossible. I habitually have about 4 Chrome windows open. On linux, I have a system set up so I have a different keyboard shortcut to switch to each window, so I can jump to the correct one really quickly.
Is there possibly a way to do this on OSX? I'm willing to write moderate amounts of code if necessary to implement this, 'though I should probably head over to StackOverflow if that looks like it will be needed.
Best Answer
Windows that were created later usually have a larger id. If the script is run when there's no second window, there won't be an error dialog because it's wrapped in a try block.
You can give the scripts shortcuts with FastScripts or by creating Automator services.