Opening the default browser in a URL

Mac OSX specific forum
User avatar
marcoagpinto
Addict
Addict
Posts: 1055
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Opening the default browser in a URL

Post by marcoagpinto »

Hello!

ts-soft explained how to open the default browser in Linux and Windows.

Does anyone know how to do it in Mac?
ts-soft wrote:

Code: Select all

CompilerSelect #PB_Compiler_OS
  CompilerCase #PB_OS_Linux
    RunProgram("xdg-open", "http://marcoagpinto.cidadevirtual.pt/proofingtoolgui.html", "")
  CompilerCase #PB_OS_Windows
    RunProgram("http://marcoagpinto.cidadevirtual.pt/proofingtoolgui.html")
  CompilerCase #PB_OS_MacOS
    ;???
CompilerEndSelect
Thanks!

Kind regards,
>Marco A.G.Pinto
----------------
DK5UR
User
User
Posts: 23
Joined: Mon Jun 23, 2008 9:44 pm
Location: Laubach

Re: Opening the default browser in a URL

Post by DK5UR »

Hi Marco,
Should be
RunProgram("open", "http://www.purebasic.com", "")

cu Heinz
User avatar
marcoagpinto
Addict
Addict
Posts: 1055
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

Re: Opening the default browser in a URL

Post by marcoagpinto »

DK5UR wrote:Hi Marco,
Should be
RunProgram("open", "http://www.purebasic.com", "")

cu Heinz
Thanks :mrgreen:

Edit: Heinz, what name shall I add to the credits of my open-source tool in January? "Heinz"?
DK5UR
User
User
Posts: 23
Joined: Mon Jun 23, 2008 9:44 pm
Location: Laubach

Re: Opening the default browser in a URL

Post by DK5UR »

You can add DK5UR or Heinz Urban, but at least it's not necessary ;-)
Post Reply