User forums > Help
In codeblocks 13.12 on macosx, program can not run in the project dir
(1/1)
lzguo99:
osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'
What's this mean?
My program is a small c code and it will write a *.txt result file, but actually it seems that program run at my home dir and create result there. I expect it should run in the project dir. How can I fix the problem?
The problem is on macosx, there is no problem on ubuntu. Thanks.
oBFusCATed:
This piece of code starts the terminal application on OSX, so you can see the output of your console application.
CB 13.12 is known to be broken on newer OSX releases when starting the terminal application.
Probably some of the nightlies have fixes for this problem, but there is no one building CB on OSX, so we don't know if this is really the case.
Navigation
[0] Message Index
Go to full version