I am a new user of Firefox's plugin system. I wanted to create a plugin that will download multiple files in a que, and then open them for practice.
My question is if there is a way to download a file from the Internet in the plugin. I am aware of os.file's existence (though it is not easy for me to understand how to use it from the examples provided). Next I would like to know if there is a way to execute the file using the default program for it.
As of Firefox 26, in Add-on SDK, restartless/bootstrap, or overlay based extensions, the most appropriate way to download a file from within an add-on is to use the Downloads.jsm JavaScript code module.
Downloading to a local file example from MDN Downloads.jsm page:
If you want to initiate a download exactly as if the user had initiated it, then you should see my answer to How to launch a normal download from an addon.