content

» Script Library: ScriptLib Web Generator

ScriptLib Web Generator

Generates an index.html and one html file for each element of a ScriptLib ARS record. In each of these, saves and renames attachments and images and adds appropriate html text for these.

The Script Library web pages are generated by this script.

Demonstrates

This script demonstrates how to build ASCII files like HTML or XML.

It processes a Query of ARS records to build a single detail webpage for each record retrieved, and, a single index.html page containing data from the complete set of records processed and URLs to the generated files. individual pages for each of those records

This page was generated with this script.

Loading

This example comes complete with a def file and an arx file. Import the def files in numerical order, and then load the arxs file with the Import Tool in numerica orderl. Feel free to play with the records.

Run the script and it will generate the following files: ./index.html ./sc1.html ./sc2.html

where ./ can be any directory and sc1 is a generated file name based on data on the record.

To view the pages simply open a web browser, and tell it to open the generated index.html file.

Running

Download and expand the zip. Run the script with the output as ScriptLib\ so that the js references in the pattern files will be correct. Then open the ScriptLib\index.html file to view thw results.

 SthMupd.exe  ScriptLib-Gen  Do  -p  ScriptLib\  

Sample output

Click the Sample Output to open a
new window with an enlarged image.

More Information

These scripts will need to be edited to fit your requirements. They will also need Meta-Update installed and licensed to run.

Downloads

    Save the zip, expand in your samples or scripts directory. The zip file may contain different versions of the script and a tutorial document.

  • zip
  • Script Source