[OSX] Launch a webpage?

Mac OSX specific forum
User avatar
kenmo
Addict
Addict
Posts: 2081
Joined: Tue Dec 23, 2003 3:54 am

[OSX] Launch a webpage?

Post by kenmo »

On Windows I can launch a webpage in the default browser as

Code: Select all

RunProgram("http://www.w3.org/TR/html401/struct/links.html")
But testing on Mac, this doesn't seem to launch anything.

Is there another simple way to correctly launch a URL?
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: [OSX] Launch a webpage?

Post by J. Baker »

Code: Select all

RunProgram("open", "http://www.w3.org/TR/html401/struct/links.html", "")
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
User avatar
kenmo
Addict
Addict
Posts: 2081
Joined: Tue Dec 23, 2003 3:54 am

Re: [OSX] Launch a webpage?

Post by kenmo »

D'oh. It was so simple.

Thanks mate.
Post Reply