• 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: How to execute the .app from the Terminal window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to execute the .app from the Terminal window


  • Subject: Re: How to execute the .app from the Terminal window
  • From: Ryan Britton <email@hidden>
  • Date: Wed, 4 Jan 2006 07:00:00 -0800

You can set NSUserDefaults values with the parameters if you put them in the right format. It's one way of setting stuff for debugging purposes. See this previous post for that:
http://www.cocoabuilder.com/archive/message/cocoa/2005/10/26/148851



On Jan 4, 2006, at 2:01 AM, Elango C wrote:

Hi everyone,

I would like to call/execute the cocoa application (sample.app) from
the Terminal window (i.e. shell prompt).  Can I able to do it?.  I
tried the following ways

./sample.app
./sample

but no luck....

then I tried like "exec ./sample.app/Contents/Mac OS/Sample &"  now
the application is getting launched.. Is this correct one or Is there
any method of calling application from the teminal window?

I am using Xcode 2.2 for my development. I would like to test/debug my
application with commandline parameters... I dont know where to
specify the command line arguments in the Xcode project settings.  Can
any one tell me how to do this...

Thanks,
--Elango
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >How to execute the .app from the Terminal window (From: Elango C <email@hidden>)

  • Prev by Date: Re: perform ... afterDelay?
  • Next by Date: Re: perform ... afterDelay?
  • Previous by thread: Re: How to execute the .app from the Terminal window
  • Next by thread: UNICODE from a WinTel box
  • Index(es):
    • Date
    • Thread