OS X trick of the day

ziggy on 2002-07-18T00:22:56

[ziggy@localhost ~]$ openurl http://use.perl.org/
It uses Internet Config to show a web page through Mozilla. (Or that other browser if you haven't reset your default web browser.) I can't imagine how I came across it. Must have stowed away when I did fink install w3m.

Really helps, because I couldn't figure out how to run mozilla -remote under OS X. (Where is the Mozilla actual binary, after all?)


Location of Mozilla

Theory on 2002-07-18T09:10:46

/Applications/Mozilla/Mozilla.app/Contents/MacOS/Mozilla

Re:Location of Mozilla

ziggy on 2002-07-18T13:05:25

[ziggy@localhost ~]$ /Applications/Mozilla/Mozilla.app/Contents/MacOS/Mozilla
bash: /Applications/Mozilla/Mozilla.app/Contents/MacOS/Mozilla: cannot execute binary file

Re:Location of Mozilla

Theory on 2002-07-18T13:46:37

Use the open command, then.

mercury% open /Applications/Mozilla/Mozilla.app/Contents/MacOS/Mozilla

Read more here.

Re:Location of Mozilla

ziggy on 2002-07-18T13:55:47

Then I can't pass command line arguments to Mozilla then:
$ mozilla -remote 'openurl(http://use.perl.org)'
That's sort of what I was going for. open -a Mozilla does what you mentioned a little more easily.

I haven't seen the OSX FAQ though. Thanks for mentioning it.

Re:Location of Mozilla

Theory on 2002-07-18T14:26:06

It wouldn't surprise me if Mozilla didn't take command-line arguments under Mac OS X.

You missed my YAPC talk

pudge on 2002-07-22T03:37:58

open me

Re:You missed my YAPC talk

ziggy on 2002-07-22T15:57:30

Yep. I didn't care too much about OS X at YAPC. I got the iBook about two days later. :-)

Re:You missed my YAPC talk

pudge on 2002-07-22T16:08:59

Well, now go back and read the rest of my slides, there will be a test!

Re:You missed my YAPC talk

ziggy on 2002-07-22T16:54:25

Right now, I'm more concerned that the airport on the wireless just works, and the DLink card in the Intel laptop can't seem to connect to the network. Sorta means we've got two laptops, but only one fully working machine between us...

:-(