DownloadFile on macOS
Posted: Sun Feb 24, 2019 11:43 am
Hi, I have a command like this in my script:
DownloadFile("http://internet.com/" ..
"Hello.jpg", {File = "Hello.jpg"})
It downloads the given file to the same folder where the script is located. The behaviour is the same on Windows and macOS.
However, if I compile a standalone executable, while Windows .exe still downloads it to the same folder, macOS app downloads it to itself: App > Contents > Resources
How can I download it to the same folder where the app itself is located? Or elsewhere?
Many thanks.
DownloadFile("http://internet.com/" ..
"Hello.jpg", {File = "Hello.jpg"})
It downloads the given file to the same folder where the script is located. The behaviour is the same on Windows and macOS.
However, if I compile a standalone executable, while Windows .exe still downloads it to the same folder, macOS app downloads it to itself: App > Contents > Resources
How can I download it to the same folder where the app itself is located? Or elsewhere?
Many thanks.