RunProgram on the Mac

Just starting out? Need help? Post your questions and find answers here.
davedev
User
User
Posts: 12
Joined: Wed Jun 09, 2010 4:05 pm

RunProgram on the Mac

Post 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.
davedev
User
User
Posts: 12
Joined: Wed Jun 09, 2010 4:05 pm

Re: RunProgram on the Mac

Post by davedev »

Nevermind. Found the OS Specific forum section. Deduced the path needs to be "TextEdit.app/Contents/MacOS/TextEdit "
Fred
Administrator
Administrator
Posts: 18254
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: RunProgram on the Mac

Post by Fred »

You could try "open" as command, and "TextEdit" as argument, like you would do in a terminal, it should work.
Post Reply