[Ti] Re: Executing apps from command line?

Timothy Luoma lists at tntluoma.com
Wed Jul 20 20:51:02 PDT 2005


On Jul 20, 2005, at 5:41 PM, Jim Soriano wrote:

> How do you start a Macintosh application such as MS Word from the  
> terminal window's command line?

     open -a 'Microsoft Word'

if the app only has one word, like "Mail" you don't need the quotes

     open -a 'Microsoft Word'  '~/Documents/File With Spaces.doc'

will open the file in the app.


Some apps respond differently, for example,

     open -a Mail '~/Documents/File With Spaces.doc'

will open a new Compose window with the file as an attachment

TjL




More information about the Titanium mailing list