Open application from BMX

BlitzMax Forums/BlitzMax Programming/Open application from BMX

How can I run an application from a blitzmax application?

Something Like this (example): RunFile( FilePath$ )? I can't find anything.

Thanks.

try this:
system_ "notepad"


system_(executable:string)
or local process:TProcess = createprocess(executable:string)

depending if you want your bm app to wait or to go on.

One thing I should have mentioned. I'm running on a macbook pro and the Intel version of max does not have TProcess and the system_ "application" is a no go also. Is there another way to do it?

Thanks.

No not unless you wrap yourself a "mac api call".

Damnit.

I'm running on a macbook pro and the Intel version of max does not have TProcess
Are you sure, baring in mind that it's undocumented?

It should be be in '.../mod/pub.mod/freeprocess.mod'


Anyway, you should be able to use...
system_ "open /Applications/Calculator.app"
(stolen straight from the wiki)

@Yan - Thanks!

Is there a way of using createprocess for a URL bearing in mind various browsers.