Download does not work in standalone
Mark Schonewille
m.schonewille at economy-x-talk.com
Fri Oct 9 11:47:16 EDT 2015
Did you include the Internet library (is not the browser external) in your standalone, in de standalone application settings?
--
Kind regards,
Mark Schonewille
Economy-x-Talk
Http://economy-x-talk.com
Share the clipboard of your computer over a local network with Clipboard Link http://clipboardlink.economy-x-talk.com
Op 9 okt. 2015 om 13:41 heeft Tore Nilsen <tore.nilsen at me.com> het volgende geschreven:
> I am having trouble with this script in a standalone application for OSX. It works alright in the IDE, but will not work when a standalone is built.
>
> on mouseUp
> hide group "DownloadInfo"
> put gValgtLeksjon & ".pdf" into tFilNavn
> ask file "Velg hvor du vil lagre filen:" with tFilnavn as sheet
> if the result is not "Cancel" then
> put it into tPath
> if field "Ressurser" of card gValgtLeksjon of stack "Lessons" is empty then
> put gThisPage & "/pdf" into tResourcePath
> else
> put field "Ressurser" of card gValgtLeksjon of stack "Lessons" into tResourcePath
> end if
> put "Laster ned fil: " & tFilnavn into field "DownloadInfo"
> if char 1 to 4 of tResourcePath is not "http" then
> answer tResourcePath & " er ikke en gyldig lenke!" with "Avbryt"
> if it is "Avbryt" then
> exit mouseUp
> end if
> end if
> libURLSetStatusCallback "showProgress",the long ID of me
> libURLDownloadToFile tResourcePath,tPath,"downloadComplete"
> end if
> end mouseUp
>
> I also had some problems with the CEF-browser, but choosing libraries manually in the standalone settings solved that problem. Somehow it seems as if the internet library is not included in the standalone files.
>
> I wonder if anyone has any solutions to this problem.
>
> Regards
> Tore Nilsen
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list