On Nov 26, 2013, at 9:47 AM, koko wrote: > NSTask *task; > task = [[NSTask alloc] init]; > [task setLaunchPath:rootScriptPath]; > [task setArguments:[NSArray arrayWithObjects:rootpath, nil]]; > [task waitUntilExit]; > [task launch]; > [task release];
You have the invocation of -launch and -waitUntilExit in the wrong order. I have no idea what it could mean to wait for the task to exit before it's launched. I wouldn't be surprised if that's what is throwing the exception. That said, I agree with the suggestion to delete the files from within the parent process rather than launching a script to do it. Regards, Ken _______________________________________________ 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com