command line tool: processing files dropped on it?

2008-10-01 Thread Barrie Green
hi all, Hopefully someone can point me in the right direction. I have a command line tool, written in c++, that I use on my windows machine, which allows me to drop files onto it. Windows ensures the tool receives the paths of the files dropped through the argc/argv arguments in main. I have po

exec(uting) Safari - How (newbie)

2008-07-01 Thread Barrie Green
Hi all, I want to write a quick little cocoa app that fires off Safari. I started with something like int main(int argc, char* argv[]) { ... ... if(execv("/Applications/Safari.app", someArgs) == -1) { NSLog(@"execv failed with %s", strerror(errno)); } } It always fails with 'Permiss