I've got a couple Firefox profiles constantly open on my Mac (I'm running Snow Leopard), and I'd like a command that will open a new tab in one of them. I've been trying variations on this:
firefox -P targetProfileName -remote "openurl(http://example.com, new-tab)"
but it keeps complaining that "A copy of Firefox is already open. Only one copy of Firefox can be open at a time." I know it's already open; I want the new tab in the window that's already there. Any idea how to do that? Thanks in advance for the help!
Try open -a Firefox 'http://example.com/'
. This opens the given URL with Firefox, starting it if it doesn't already run.
If you skip the -a Firefox
part, then the URL will be opened with the default browser.
If you have Mozilla Firefox already open with the Default profile or anyother profile, try:
Path-To/firefox -remote openurl("http://www.example.org")
Tested and worked for me with Mozilla Firefox from 2.x to 12.x
I'm not sure how remoting works on the Mac as I don't have one, but on Windows and Linux you can only have one profile enabled for remoting at once; you need to start that profile normally, and and all the other profiles with -no-remote
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With