How do I choose the application when opening a file in UNIX?

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) How do I choose the application when opening a file in UNIX?
# 1  
Old 10-26-2006
How do I choose the application when opening a file in UNIX?

If I have a file in OSX (e.g. a pdf), I can choose how to open it i.e. with the "open with..." command from the 'right click menu'.

Sometimes a pdf is garbled in OSX Preview so I need to open it in Adobe Acrobat.

How do I choose the application when opening a file in UNIX?
# 2  
Old 10-26-2006
the man page for the open command indicates-> open -a applicationname

Depending on which applications, you may need to provide the path to the application's actual executible, but:

Code:
open -a "Adobe Acrobat 7.0 Professional.app" /Users/USERNAME/PATH_TO/SOME.pdf

works for me.

(substitute the appropriate information in place of the ALLCAPS words Smilie )

Terminal lets you drag an item from the desktop to the open terminal window to enter it's path.

read the man pages for things. their very helpful.
in this case-> man open
brings up the man page for the open command. Smilie
# 3  
Old 10-27-2006
Computer That's exactly what i was looking for!

Thanks. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Opening a Unix File with Mac OS X

Hi. I'm new to Unix and recently received Unix files via email. I downloaded those files but am unable to open them on my computer which uses Mac OS X. How do I open the files? (11 Replies)
Discussion started by: michellemc
11 Replies

2. Shell Programming and Scripting

cron for windows, process is OK, but application is not opening

Dear All, I need a help. i have an mapped drive application. I want to start this application using cron. I have downloaded cron setup from the below link: www.kalab.com/freeware/cron/cron.htm And it crontab file works fine. But if i want to start an application. Then process... (2 Replies)
Discussion started by: vasanth.vadalur
2 Replies

3. UNIX for Dummies Questions & Answers

Problem in opening UNIX file in Windows

Hi , I am having file in unix with size (386796649) , below is the output of ls command in UNIX. I have ftp'ed the file to my windows machine . When i tried to open the file it is not opening . Why it is so . Is there is size limit. -rw-rw-rw- 1 p10 pQQ 98473 Sep 17 17:20... (4 Replies)
Discussion started by: arunkumar_mca
4 Replies

4. Linux

Opening a TXT file in LINUX / UNIX

Hey Friends, When I open (More <filename>) a big txt file in UNIX /LINUX it asks me to press any key to see remaining file. Can I see it in a stretch? I mean I jst want to let the contains of file scroll up completely. Is there any way out? Plz help. Thanx in advance Anushree. (2 Replies)
Discussion started by: anushree.a
2 Replies

5. UNIX for Dummies Questions & Answers

Urgent help needed to delete some text without opening the file in unix

Hi To delete some text in 2 files in line1 ( not complete line) in unix without opening the files. For example: source file is like this <?xml version="1.0"... (5 Replies)
Discussion started by: pyaranoid
5 Replies

6. UNIX for Dummies Questions & Answers

Opening a Unix File in Windows.

Hi folks, I have a file in unix box as abc.xls and i have a file in windows box as abc_win.xls. Now if i open the file abc_win.xls which is in windows, i have to get the datas of the file abc.xls which is in unix. Everytime i opens the abc_win.xls file, the updated datas of file abc.xls... (6 Replies)
Discussion started by: a439511
6 Replies

7. UNIX for Dummies Questions & Answers

Opening an mp3 with a different application

I would like to know how to open an mp3 with an application other than it's default app. For instance, instead of opening with iTunes, I would like it to open with quicktime. Any help would be appreciated. Thanks!! (1 Reply)
Discussion started by: emperorfabulous
1 Replies

8. UNIX for Advanced & Expert Users

Opening an Excel File in Unix

Hi all, I want to open an Excel file in Unix(ABC.xls) and copy one column of the file onto another text file (xyz.txt) .Please let me know if there is a way of going about to perform this operation. Thanks in Advance, bubeshj (5 Replies)
Discussion started by: bubeshj
5 Replies

9. Programming

File Opening in C++ in Unix Env

Pls someone help me. This piece of code is giving me weird results. ofstream outfile; ofstream out; char filename1; char filename2; memset(filename1,'\0',sizeof(filename1)); memset(filename2,'\0',sizeof(filename2)); strcpy(filename1,"Testing1.out");... (0 Replies)
Discussion started by: skannan
0 Replies
Login or Register to Ask a Question