can't run app from applications folder -- permissions problem?
can't run app from applications folder -- permissions problem?
- Subject: can't run app from applications folder -- permissions problem?
- From: Ben Dougall <email@hidden>
- Date: Mon, 17 Apr 2006 23:19:14 +0100
i'm running a couple of command line utilities from two system() calls
(i know it's a dodgy function but it's not a serious/proper app). the
command line utilities are inside my app's bundle. when running the app
while writing and building it no problem. but once i've built it and
put it in my apps folder then the command line calls aren't working i
don't think. i get this when the app is run from in the applications
folder:
sh: /Applications/: is a directory
here's the line that calls the command line utility:
system( [[NSString stringWithFormat:@"%@/CpMac -p %@ %@", [[NSBundle
mainBundle] resourcePath], origFile, backupTmpFile] cString] );
i'm not a 100% the above sh: line/error is coming from the above system
call but i think it is. is this be a permissions problem? if i drag my
app out of the applications folder and run it from the desktop for
example it doesn't give the above 'is a directory' line. any ideas?
thanks, ben.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden