Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ghanwani

macrumors 603
Original poster
Dec 8, 2008
5,066
6,587
If I'm browsing my directories in the terminal using unix commands, is it possible to start an applications such as Pages directly from the prompt?

I do most of my file management via unix, but when I need to edit or view something, I go through the Finder which is kind of a pain.

In Windows, just typing the file name at the command prompt would bring up the file in the appropriate application (based on file extension).

Thanks,
Anoop
 
open /Applications/TextEdit.app/ opens TextEdit

Beautiful...just what I was looking for! It works for all applications!!!
So now at the command prompt if I type:

open /Applications/iWork\ \'09/Pages.app/ foo.doc, then it opens up Pages with foo.doc.

Now all I need to do is create aliases/functions for all the apps and I'll be able to just type "Pages foo.doc" from any directory and it will work.

Thanks!

Anoop
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.