On Jan 6, 2011, at 17:35, Jason Swails wrote:

> man open ;)
> 
> 'open <file>' will open <file> with its default program if there is one.
> 'open -a <program> <file>' will open <file> with <program>
> 
> and my personal favorite,
> 
> 'open -a <program>' just launches the program as though you clicked it on the 
> dock or double-clicked it in the finder (and remember that Mac is 
> case-insensitive).

Or expressed in terms of Finder functionality:

"open <file>" is the same as double-clicking the file <file>

"open -a <program>" is the same as double-clicking the program <program>

"open -a <program> <file>" is the same as dragging the file <file> onto the 
program <program>

"open -e <file>" is the same as dragging the file <file> onto the program 
TextEdit


_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

Reply via email to