Jump to content
Content starts here

J-Fetch - The Radical Gnarly Tubulator

Details

I created J-Fetch for another project I'm working on, but thought I would share this, since I believe this functionality has the power to revolutionize the nature and versatility of complex scripts at a fundamental level.

Now think about this. You have a set of scripts for an advanced application, and when the application is upgraded, the version changes, but the JAWS scripts have to be downloaded and installed separatly to maintain functionality. Well, how about this scenario instead. The program is upgraded, and the JAWS scripts automatically check the version of the application, and compare this with the JAWS script version whether as a constant or within an INI file. When the versions no longer match, the JAWS scripts will automatically check the remote file server to see if any scripts are available for the new application version. If found, the JAWS scripts will then automatically download the new JSB, JSD, and JSS files, and save these within the user's JAWS script directory... All programmatically, in the background, and without any fuss or muss. Then the new scripts start working instantly!

You can also parse server files to check for specific information. For instance, if you have a PHP file on your server that checks for specific information, such as the matching of a user's serial number with their name, you can include variables within the url request to send these variables to the page, and the result will be returned as a string within the JAWS scripts.

There are literally so many possibilities with this functionality, that I can't imagine them all. So, I figure, you are welcome to try. All that I ask, is that you leave a comment with my name in the script if you decide to use the implementation.

Function Parameters

  1. String URL ; The full url to the remote file
  2. String FilePath ; The path where you want to save the new file. Leave blank to return a text string instead.
  3. String Method ; "GET" or "POST"
  4. Object Body ; should be null if not using the POST method to send info within the request
  5. Int isBinary ; true if downloading a binary file, false otherwise
  6. Int shouldOverwrite ; true or false, if file already exists. Doesn't apply when FilePath is blank.

Requirements

Download

Download J-Fetch - The Radical Gnarly Tubulator

Requires JAWS For Windows.