[X-Unix] "open" command syntax?

Warren Pollans warren at meyer-pollans.net
Fri Jan 13 10:58:31 PST 2006


Thanks.  The manpage for 'open' seemed to suggest that I could specify
the application to be used to open the file "(or a directory or URL)".
I'll either use your suggestion about applescript or the full path to
the binary.


On or about Fri, 13 Jan 2006 11:47:49 -0700
James Bucanek <subscriber at gloaming.com> allegedly wrote:

> Warren Pollans wrote on Friday, January 13, 2006:
> 
> >I'm using 10.3.9 with firefox as my default browser.
> >
> >"open -a mozilla"  opens mozilla
> >
> >BUT "open -a mozilla http://google.com" opens firefox
> 
> You're mixing metaphores. Mozilla is an application.
> 'http://google.com/' is an URL. The 'open' command opens
> applications, documents, documents with an application, documents
> with TextEdit, documents with the default text editor, or URLs. But
> it won't send an URL to an arbitrary application.
> 
> >QUESTION: how do I open a url in mozilla from the commandline?
> 
> AppleScript?
> 
> osascript -e 'tell application "Firefox" to open location
> "http://www.apple.com/"'
> 
> -- 
> James Bucanek
> _______________________________________________
> X-Unix mailing list
> X-Unix at listserver.themacintoshguy.com
> http://listserver.themacintoshguy.com/mailman/listinfo/x-unix
> 
> Listmom is trying to clean out his closets! Vintage Mac and random
> stuff: http://search.ebay.com/_W0QQsassZmacguy1984


More information about the X-Unix mailing list