In continuation to suggestion, I want to ask how can I launch a cocoa application with passing arguments. Currently I am creating shell script which has following contents & calling it using "system" api:
cd /Users/palav ./test.app/Contents/MacOS/test arg1 arg2 & I tried using NSTask but it failed. I think NSTask is only useful to launch plain unix exectuable (which does not resources, info.plist) Thanks, Palav On 5/23/08, parag vibhute <[EMAIL PROTECTED]> wrote: > Thanks for suggestion. I will definitely give a try. > > Palav > > On 5/23/08, Jens Alfke <[EMAIL PROTECTED]> wrote: >> >> On 23 May '08, at 1:26 AM, parag vibhute wrote: >> >>> I am developing cocoa application & using NSApplescript class to do >>> shell >>> scripting which involves zip command. >> >> Don't use AppleScript to run a command-line tool! It's incredibly >> wasteful, like chartering an airliner to take you to the grocery store. >> >> Just use NSTask to run /usr/bin/zip. >> >> —Jens > > > -- > > There are many things in your life that will catch your eye but only a > few will catch your heart....pursue those'. > -- There are many things in your life that will catch your eye but only a few will catch your heart....pursue those'. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]