• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: launching Application from terminal
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: launching Application from terminal


  • Subject: Re: launching Application from terminal
  • From: Jeff Dickey <email@hidden>
  • Date: Sat, 19 Dec 2009 18:25:12 +0800
  • Thread-topic: launching Application from terminal

More specifically, use "open /path/to/app-name.app/"; in other words, don't
'open' the app's binary executable directly, but tell Finder to execute the
default action for an app folder - which is to open the contained app, with
various housekeeping along the way. Once you have more than a couple dozen
apps installed, you'll find yourself doing it all the time. :-P

Just wanted to be egregiously explicit about it to avoid somebody trying
"open /path/to/app-name.app/Contents/MacOS/app-name" - which (usually) won't
work.

And yes, count me in to the group that say that any non-trivial app should
be AppleScriptable.

Jeff


On 17/12/09 05:29 , "Jerry Krinock" <email@hidden> wrote:

>
> On 2009 Dec 16, at 10:06, Arun wrote:
>
>> If i launch Applications from Terminal, using the command
>> /Applications/Calculator.app/Contents/MacOS/Calculator
>> The application is getting launched. But...
>
> not very well, as you and others have noted.
>
> If you want a *supported* way to do this, see man page for /usr/bin/open.  It
> allows you to pass arguments.
>
> As noted, this is hacky.  AppleScriptability would be
> better._______________________________________________
>

--
Jeff Dickey         http://archlever.blogspot.com/
Email:              email@hidden
Phone/SMS:          +65 8333 4403
Skype:              jeff_dickey
LinkedIn:           jdickey
Yahoo! IM:          jeff_dickey
MSN IM:             email@hidden (for IM only, please)
ICQ:                8053918
QQ:                 30302349
GnuPG key:
    Fingerprint     D367 FB97 4E59 BEC0 8EBC  D8E3 3BD4 7D4C DFE0 6488
    Valid from      01 July 2009 to 31 December 2009
    Download from   http://tr.im/qqQa


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: launching Application from terminal (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: NSAlert or what?
  • Next by Date: NSTableview datasource issues
  • Previous by thread: Re: launching Application from terminal
  • Next by thread: Core Video - Getting Started
  • Index(es):
    • Date
    • Thread