Hi,
I am not very good with command line tools and am wondering if someone can help me create an zip archive of the Desktop folder using usr/bin/zip and NSTask.
I have gotten this far (see below), but since I don't really know how to use usr/bin/zip in the command line I don't know how to create my NSTask.
//begin sample code
NSTask *task;
task = [[NSTask alloc] init];
[task setLaunchPath: @"/usr/bin/zip"];
//should this be "/usr/bin/zip ~/Desktop" or something like that? how do you create an zip archive from the command line?
NSPipe *pipe;
pipe = [NSPipe pipe];
[task setStandardOutput: pipe];
[task launch];
//end sample code
Thanks for the help.