Re: Query about Zip command

2008-05-24 Thread parag vibhute
Sorry for my last email. That comment was incorrect(I was thinking something else). Sorry again. I will try with launchAppWithBundleIdentifier API & will let u know the output. Thanks, Palav On 5/24/08, parag vibhute <[EMAIL PROTECTED]> wrote: > I am launching my app through applet. So passing a

Re: Query about Zip command

2008-05-24 Thread parag vibhute
I am launching my app through applet. So passing arguments as command line is only current solution for me. Thanks, Palav On 5/24/08, Andreas Mayer <[EMAIL PROTECTED]> wrote: > > Am 24.05.2008 um 08:08 Uhr schrieb Andrew Farmer: > >> GUI applications generally do not take arguments - opened files

Re: Query about Zip command

2008-05-23 Thread Adam R. Maxwell
On May 23, 2008, at 11:08 PM, Andrew Farmer wrote: On 23 May 08, at 21:22, parag vibhute wrote: But my requirement is to pass arguments to GUI apps while launching it & is it possible using Launch services? I will post my code of NSTask for launching GUI app in 1-2 days as my Mac is in offic

Re: Query about Zip command

2008-05-23 Thread Andreas Mayer
Am 24.05.2008 um 08:08 Uhr schrieb Andrew Farmer: GUI applications generally do not take arguments - opened files are passed using Apple Events. Hence, Launch Services doesn't provide any way to pass arguments. You can use Apple Events yourself, though. See NSWorkspace's - launchAppWithBu

Re: Query about Zip command

2008-05-23 Thread Andrew Farmer
On 23 May 08, at 21:22, parag vibhute wrote: But my requirement is to pass arguments to GUI apps while launching it & is it possible using Launch services? I will post my code of NSTask for launching GUI app in 1-2 days as my Mac is in office. GUI applications generally do not take arguments -

Re: Query about Zip command

2008-05-23 Thread parag vibhute
But my requirement is to pass arguments to GUI apps while launching it & is it possible using Launch services? I will post my code of NSTask for launching GUI app in 1-2 days as my Mac is in office. Thanks, Palav On 5/24/08, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Fri, May 23, 2008 at 2:13 PM

Re: Query about Zip command

2008-05-23 Thread Stephen Hoffman
There might not be a framework, but there's full and portable C source code available. http://info-zip.org ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the modera

Re: Query about Zip command

2008-05-23 Thread Kyle Sluder
On Fri, May 23, 2008 at 2:13 PM, parag vibhute <[EMAIL PROTECTED]> wrote: > I tried using NSTask but it failed. I think NSTask is only useful to > launch plain unix exectuable (which does not resources, info.plist) This isn't strictly true (you were probably improperly using NSTask), but for launc

Re: Query about Zip command

2008-05-23 Thread parag vibhute
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 fail

Re: Query about Zip command

2008-05-23 Thread parag vibhute
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

Re: Query about Zip command

2008-05-23 Thread Jens Alfke
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 grocer

Re: Query about Zip command

2008-05-23 Thread parag vibhute
I was looking for this answer only. Thanks a lot. Palav On Fri, May 23, 2008 at 2:23 PM, Andrew Farmer <[EMAIL PROTECTED]> wrote: > On 23 May 08, at 01:26, parag vibhute wrote: > >> I am developing cocoa application & using NSApplescript class to do shell >> scripting which involves zip command.

Re: Query about Zip command

2008-05-23 Thread Andrew Farmer
On 23 May 08, at 01:26, parag vibhute wrote: I am developing cocoa application & using NSApplescript class to do shell scripting which involves zip command. I am using zip command for zipping the files because there is no framework api available for it. Even though libz is available, it is n

Re: Query about Zip command

2008-05-23 Thread Robert Cerny
On 23.5.2008, at 10:26, parag vibhute wrote: Hi all, I am developing cocoa application & using NSApplescript class to do shell scripting which involves zip command. I am using zip command for zipping the files because there is no framework api available for it. Even though libz is availa