| Article: |
Learning the Mac OS X Terminal: Part 1 | |
| Subject: | Command line for Word | |
| Date: | 2006-01-27 04:53:10 | |
| From: | Charliefarley | |
|
This is heresy for long time Mac heads, but I want to call Word from within my application using a command line. Normally in that other well known operating system, I would type c:\..\program files\..\winword.exe Can I do that using the OS10 commandline? If not, how can I call word from a script?
|
||
Showing messages 1 through 1 of 1.
-
Command line for Word
2006-11-29 09:32:16 tcomputerchip [View]



You can create alias to your programs, but first this is how you open it.
% open -a Microsoft\ Word
now, that seems a bit long, and you need to have the "\" as the application is named that way in the applications folder.
Alternative:
% vim ~/.bash_profile
alias word 'open -a Microsoft\ Word'
alias photoshop 'open -a Adobe\ Photoshop\ CS\ 2'
save that file,
then source it or relaunch your shell
type:
% word
that should do it...