Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old May 21, 2006, 06:35 PM   #1
pacman7331
macrumors regular
 
Join Date: Apr 2006
Terminal

Forgive me for my stupidity...
But how does one from the terminal command line interface LAUNCH A APPLICATION!??!?

I type the name and it doesn't like that... I'm looking in my o'reilly book and it's also not helpful so far...

Anyone know how? seems pretty simple thing to do... I know how to kill and app but not how to "open" one
__________________
-Pacman

rMBP 2.7/16/512
pacman7331 is offline   0 Reply With Quote
Old May 21, 2006, 06:40 PM   #2
janey
macrumors 603
 
janey's Avatar
 
Join Date: Dec 2002
Location: sunny los angeles
"open"?

like,
Code:
open /Applications/Utilities/Disk\ Utility.app
opens Disk Utility for me.
__________________
iPad | 15" MacBook Pro | black (iPhone 3GS|MacBook) | Mac mini server
moof!

janey is offline   0 Reply With Quote
Old May 21, 2006, 06:45 PM   #3
pacman7331
Thread Starter
macrumors regular
 
Join Date: Apr 2006
fantastic .. (!) ok hah
__________________
-Pacman

rMBP 2.7/16/512
pacman7331 is offline   0 Reply With Quote
Old May 21, 2006, 09:50 PM   #4
mrichmon
macrumors 6502a
 
Join Date: Jun 2003
Quote:
Originally Posted by pacman7331
Forgive me for my stupidity...
But how does one from the terminal command line interface LAUNCH A APPLICATION!??!?
As another poster has pointed out, the "open" command does what you are asking for.

The more detailed answer is that most "commands" you enter at the command line, such as "open", "tar", "zip", "ls" are all executable programs.

An OS X application like Safari or DiskUtility are not executables. Instead, they are actually a folder that contains a specific structure and set of files inside the folder. The actual executable is stored in the Safari.app/Contents/MacOS/ folder. For DiskUtility, the actual executable is /Applications/Utilities/DiskUtility.app/Contents/MacOS/Disk Utility. You can run this executable directly, but the cleaner way is to use the "open" command.
mrichmon is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
General: FIX "Error opening terminal: xterm-256color" for Terminal Commands (e.g., "top") iOS7 thelatinist Jailbreaks and iOS Hacks 9 Jan 10, 2014 08:46 PM
Terminal terminal-ology geohump Mac Applications and Mac App Store 0 May 17, 2013 01:40 PM
General: A better terminal? CodeBreaker Jailbreaks and iOS Hacks 7 Mar 1, 2013 09:21 AM
Terminal Help Please! Rynwar79 OS X 10.8 Mountain Lion 1 Nov 21, 2012 12:14 PM
Terminal? thrill4rishabh Mac OS X 10.7 Lion 4 Jul 18, 2012 10:40 AM

Forum Jump

All times are GMT -5. The time now is 04:59 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC