Hello,
This is a very simple question. I have a script in the same folder as the Cocoa app. I can't seem to set the path to it properly for setLaunchPath
for NSTask
. Help please.
I have a folder called Project. Inside of it, exist multiple folders but only two we care about: Classes
(the source files for the Cocoa app are here) and Ruby (which is a ruby server folder). I am trying to call Ruby/script/server
. I assumed it would be something like ./Ruby/script/server
or Ruby/script/server
but both are wrong.
Thanks.
EDIT: I guess what I'm actually asking is if there is a way to access the folder where the source files or the project is by using a special character or shortcut because by default it goes to the /tmp
folder.