Re: How to apply arguments to .app application while starting it on Terminal?
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