How to active tabs on windows by terminal? wmctrl doesn't have option available

view full story

http://unix.stackexchange.com – I'd like improve a script of mine that uses firefox to perform tasks. I need activate a window and a tab with a specific name. For example, the window name could be Mozilla Firefox and the tab http://localhost/site.php. I can activate windows using wmctrl -a, but this doesn't work very well because all firefox windows could have Mozilla Firefox on its name, even the windows without tabs named http://localhost/site.php. An example of what I need is: activate the tab http://localhost/site.php at the window Mozilla Firefox. I use linux and I would like a solution for this kind of system. Probab (HowTos)