image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
LinkBack Thread Tools
  #1  
Old September 22nd, 2008, 09:35 PM
Registered User
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
adi26 is on a distinguished road
Question How to execute installed software through terminal?

Hello, I am a newbie to mac; just wondering how to execute software through terminal. For example , I just installed adobe reader. And in terminal I want to open my pdf file through adobe, "adobe example.pdf" but command line console does not know what 'adobe' is -- "adobe: command not found". But it does exist in the GUI. Can anyone help me out?

Thanks
Reply With Quote
  #2  
Old September 22nd, 2008, 09:39 PM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 8,378
Thanks: 29
Thanked 142 Times in 126 Posts
nixgeek is a jewel in the roughnixgeek is a jewel in the roughnixgeek is a jewel in the rough
In the Terminal, use the "open" command followed by the name of the application. You might have to give the path to the directory along with the app name. For example, if you wanted to open Safari from the Terminal, just type the following...

Code:
open /Applications/Safari.app
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11/Ubuntu 9.10
Asus Eee PC 901 (1.6 GHz Atom N270) - Ubuntu Netbook Remix 9.04
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 9.04
Reply With Quote
  #3  
Old September 22nd, 2008, 09:41 PM
Registered User
 
Join Date: Sep 2008
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
adi26 is on a distinguished road
Is there no way that I can change the native opener for all pdf's from Preview to Adobe? So when I say "open example.pdf" - then terminal would automatically open example.pdf in adobe?
Reply With Quote
  #4  
Old September 22nd, 2008, 10:12 PM
Registered User
 
Join Date: Sep 2005
Location: No. Indiana
Posts: 467
Thanks: 6
Thanked 28 Times in 27 Posts
SGilbert will become famous soon enough
WHY on earth would you want to use Terminal to open a file?

In Adobe Reader, go to preferences and tell your Mac to open all .pdf's in Reader (open all .pdf's by default), if that is what you want. Personally, I find that Preview does a better job.

Additionally, you could "get info" on a .pdf. In the resulting box, assign Adobe Reader to open it and then, toward the bottom, click "Change All"
__________________
MBP, 17", 2.6GHz Core 2 Duo, 4G RAM, 200G 7200 drive, Hi-Def. Glossy screen; iPhone
Reply With Quote
  #5  
Old September 22nd, 2008, 11:43 PM
nixgeek's Avatar
Mac of the SubGenius! :-)
 
Join Date: Jan 2004
Location: Miami, FL
Posts: 8,378
Thanks: 29
Thanked 142 Times in 126 Posts
nixgeek is a jewel in the roughnixgeek is a jewel in the roughnixgeek is a jewel in the rough
Why on earth would anyone want to do that? Why not?

I can see the command having a use for scripting purposes, so that would explain its reason for existing. Still, I personally like it just as much as I love the "say" command. Just type "say" and then whatever you want the Mac to say.

Ex:

Code:
say Hello, I'm a Mac 
__________________
Apple iMac G5 17" (2 GHz G5) - Mac OS X 10.4.11/Ubuntu 9.10
Asus Eee PC 901 (1.6 GHz Atom N270) - Ubuntu Netbook Remix 9.04
Apple Macintosh Quadra 650 (33 MHz MC68040) - Mac OS 8.1
"JHVH-1" (2 GHz AMD Athlon XP 2400+) - Slackware 13
"Kidbuntu" (2.8 GHz Celeron D 335) - Ubuntu 9.04
Reply With Quote
Reply

Bookmarks

Tags
console, execute, terminal

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump


All times are GMT -5. The time now is 11:40 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.