Page 1 of 1

RunProgram on the Mac

Posted: Wed Jun 09, 2010 4:10 pm
by davedev
I'm new to PureBasic and trying to use RunProgram on the Mac. As a test case, I'm using the following code:

Code: Select all

RunProgram("TextEdit")
End
I have placed a copy of TextEdit in the same folder as my PureBasic created executable. When I run the executable or when I run from the PureBasic editor, I get nothing. The application doesn't launch, but I don't get any path errors either. I have been able to make similar code run successfully on Windows.

Thanks for any help.

Re: RunProgram on the Mac

Posted: Thu Jun 10, 2010 12:39 am
by davedev
Nevermind. Found the OS Specific forum section. Deduced the path needs to be "TextEdit.app/Contents/MacOS/TextEdit "

Re: RunProgram on the Mac

Posted: Thu Jun 10, 2010 9:18 am
by Fred
You could try "open" as command, and "TextEdit" as argument, like you would do in a terminal, it should work.