Hi! I'm working on a script that needs an external file to work. I don't want to ship this file with the script because it's relative big and some people already have this external file. What I wish to do is with a simple press of a button, download this file from the internet and automatically place it the same folder as the script.
Is this possible somehow?
The only reliable way I've seen to do something like that involves using cURL. It's easier on a Mac because cURL support is build into the OS, so you can just use system.callSystem(cmdStr) to send the appropriate cURL command to the OS. It's a lot trickier (but still possible) on Windows.
I wished there were a way without any external software on both mac and win. On win I got a working way using wget but idk how it will be with the licensing, have to read some about it. But I might use cURL on Mac then at least.