Re: Query about Zip command
Re: Query about Zip command
- Subject: Re: Query about Zip command
- From: "parag vibhute" <email@hidden>
- Date: Fri, 23 May 2008 23:43:27 +0530
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@hidden> wrote:
> Thanks for suggestion. I will definitely give a try.
>
> Palav
>
> On 5/23/08, Jens Alfke <email@hidden> 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 (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