Not sure if I'm just stupid or if there is an issue.

Mac OSX specific forum
lilRalph
New User
New User
Posts: 9
Joined: Tue Jan 20, 2015 11:31 am
Location: Adelaide, South Australia

Not sure if I'm just stupid or if there is an issue.

Post by lilRalph »

I need to be able to download a file which is streamed from a database.

Passing the link to a web browser triggers the download fine so that part of the code works.

Using RunProgram(), with the link, in Windows also works because it passes the lnk to the browser.

Unfortunately I cannot get this to work in the Mac. The code I am using to test is

Code: Select all

Debug RunProgram("Applications/Safari.app","http://google.com","",#PB_Program_Wait)
very simple I know but this

Code: Select all

Debug RunProgram("http://google.com")
even simpler code works in Windows.

I did also try using #PB_Program_Open|#PB_Program_Write with similar success, debug reports 0.

Can someone point me in the right direction here please? All I need, I think, is the ability to send a URL to the default
web browser on the Mac. My Mac is a Macbook Pro running OS X Yosemite. PureBasic is 5.24 LTS (x64)
Enthusiastic Amateur Programmer.
lilRalph
New User
New User
Posts: 9
Joined: Tue Jan 20, 2015 11:31 am
Location: Adelaide, South Australia

Re: Not sure if I'm just stupid or if there is an issue.

Post by lilRalph »

One of the interesting things about posing a question in a forum is that you'll nearly always find the answer yourself before anyone else manages an answer.

The answer is in this link http://www.purebasic.fr/english/viewtop ... eb+browser and it works fine.

By the way, thanks for all the other help. I've been lurking this forum for quite some time and you have all helped me a lot.
Enthusiastic Amateur Programmer.
Post Reply