opening a browser from command line on Windows and Mac OS X

Mac OS X doesn't even have `safari`, `Safari` or `Safari.app` in the PATH.
`/Applications/Safari.app/Contents/MacOS/Safari` seems to work.

Similar on Windows. I can't seem to be able to open Firefox from cmd.
Here it is a bit more difficult, since there isn't a standard path for it either.