Opening an internet link on MacOS

Mac OSX specific forum
freak
PureBasic Team
PureBasic Team
Posts: 5960
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Opening an internet link on MacOS

Post by freak »

Code: Select all

RunProgram("open", "http://www.purebasic.com", "")
quidquid Latine dictum sit altum videtur
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Opening an internet link on MacOS

Post by DoubleDutch »

I tried this, it works with URLs pointing to websites - but not to a dmg file on a website.

Any idea on how to start a download of a file on OSX?
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Shardik
Addict
Addict
Posts: 2076
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Opening an internet link on MacOS

Post by Shardik »

DoubleDutch wrote:I tried this, it works with URLs pointing to websites - but not to a dmg file on a website.

Any idea on how to start a download of a file on OSX?
Have you already tried installgentoo's DownloadFromURL() example code? I have just successfully downloaded a dmg file with his code.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Opening an internet link on MacOS

Post by DoubleDutch »

Thanks for the link, not seen it before. Will take a look. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Fred
Administrator
Administrator
Posts: 18499
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Opening an internet link on MacOS

Post by Fred »

ReceiveHTTPFile () should also be OK with 5.20.
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Opening an internet link on MacOS

Post by DoubleDutch »

I was thinking of something external (under the users control) that would start the download - like on Windows if you start IE with a url that contains a file it will start to download it.

I've got around it by pointing to a normal webpage, then the actual website initiates the download by doing a redirect after a couple of seconds.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply