• 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 apply arguments to .app application while starting it on Terminal?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to apply arguments to .app application while starting it on Terminal?


  • Subject: Re: How to apply arguments to .app application while starting it on Terminal?
  • From: "John C. Randolph" <email@hidden>
  • Date: Sat, 4 Aug 2007 01:59:51 -0700


On Aug 4, 2007, at 1:47 AM, Kan Cheng wrote:

Hi all,
I'm quite new to mac, and I'm confusing how to apply arguments to .app
application while starting it on Terminal?
When we want to start a simple application on shell, we simply start it
with command:
--------------------------
./someapplication arg1, arg2 ..
--------------------------
But as I know, those .app application is a bundle, and can be started
with open command:
--------------------------
Open someapplication.app
--------------------------
But on this way, I cannot apply those arguments to it. And I haven't
found any way to make it via searching Google.
So would you pls kindly teach me how to make it?

You just have to invoke the executable directly.

Macintosh:Applications jcr$ pwd
/Applications
Macintosh:Applications jcr$ TextEdit.app/Contents/MacOS/TextEdit <put your args here>


But you shouldn't need to do that.  What are you trying to accomplish?

-jcr


John C. Randolph, VP, Engineering Stealth Imaging, LLC. <email@hidden>




_______________________________________________

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: 
 >How to apply arguments to .app application while starting it on Terminal? (From: "Kan Cheng" <email@hidden>)

  • Prev by Date: How to apply arguments to .app application while starting it on Terminal?
  • Next by Date: FW: How to apply arguments to .app application while starting it on Terminal?
  • Previous by thread: How to apply arguments to .app application while starting it on Terminal?
  • Next by thread: Re: How to apply arguments to .app application while starting it on Terminal?
  • Index(es):
    • Date
    • Thread