• 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: Query about Zip command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Query about Zip command
      • From: "Kyle Sluder" <email@hidden>
References: 
 >Query about Zip command (From: "parag vibhute" <email@hidden>)
 >Re: Query about Zip command (From: Jens Alfke <email@hidden>)
 >Re: Query about Zip command (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: Query about Zip command
  • Next by Date: Re: NSTextView without word wrap?
  • Previous by thread: Re: Query about Zip command
  • Next by thread: Re: Query about Zip command
  • Index(es):
    • Date
    • Thread