-
deadcenterfilmAsked on June 3, 2014 at 3:44 AM
-
Elton Support Team LeadReplied on June 3, 2014 at 4:34 AM
Hi,
The steps for Windows is very similar with Mac though you will have to use Terminal App. I am not a Mac user but you can try the following guide:
1. First of all, you will need to have ruby installed on your machine. If you are on a Linux/Mac, it is most likely that you have it pre-installed.
If you don't have Ruby on your Mac, you can get it here.
To make sure that the ruby programming language is installed on your machine run the following code on Terminal. (Finder > Applications > Terminal) Or (Applications > Utilities > Terminal)
ruby -v
Example of successful output:
2. Create a download folder on your desktop and place downloadUploadedFiles.rb & JotForm.rb files to that folder. You can get these files here: https://github.com/jotform/api-use-cases/tree/master/ruby-uploaded-files-downloader
3. Open the Terminal app again.Then, go to the folder with downloaded scripts by typing the highlighted code below. In our example the files are on /Users/yourusername/Desktop/download folder path, so the command is:
cd /Users/yourusername/Desktop/download
and then followed by the following command.
ruby downloadUploadedFiles.rb {apiKey} {formID}
Where {apiKey} is your JotForm Account API Key and {formID} is the ID of the form in question.
Let us know if you come across any issues.
Regards!