Thank you so much for this awesomeness. Works perfectly.
But I've been really frustrated with no code for the reverse action, as in "Open Chrome tab in Safari." I'm no coder but your code made it very easy for me to modify. Replacing "Chrome"s with "Safari"s and vice versa didn't work because one uses "active tab" and the other "current tab." So I changed them accordingly as well. There were a few other problems but nothing I couldn't solve with some Googling. So now I can immediately switch between the two whenever I want by using this code with yours: http://d.pr/f/zsom
However there are some kinks.
1) If Safari is open but there is no window, the script doesn't work. Just brings the windowless Safari to focus and dies.
2) If Safari is completely closed, the script works only sometimes. Sometimes it just opens a new blank window but doesn't open the page, and sometimes works as it should.
It would be awesome if someone could clean out these kinks. I guess they should be easy enough to deal with, but I simply don't know how.
Thanks again.