Navigation bar
  Home Start Previous page
 53 of 61 
Next page End 48 49 50 51 52 53 54 55 56 57 58  

53
Purepage Server
4.0 User Guide
Scripting
Purepage Server allows you powerful control over what happens to the both HTML
renditions and the original documents after conversion.  For each document that is
successfully processed (copied, rendered, updated etc), Purepage Server has the ability
to call a script that can perform additional actions on these and other files.
The scripts that Purepage Server calls can be specified per Site or specific scripts can
be called for each folder within a Site if greater control is required.  To specify a
script, simply select the Site or folder in the tree and change the “Script to Execute”
property in the property editor.  The script can be any active scripting language,
including VBScript and JavaScript (Jscript).  
You can create scripts that perform actions such as:
 
-
Emailing a notification to a user (along with a link) that their document was
successfully published.
-
Routing the original and rendered documents to an administrator for workflow
approval.
-
Emailing the rendered document to a particular person or a group of people.
-
Moving the converted documents to a production web or Intranet server.
A template script is included with the Purepage Server install - you can find
“script.vbs” in the “Scripts” folder.  Use this script as a starting point for your custom
scripting actions.
Each executed script is passed a set of parameters or arguments that include valuable
information such as the original filename, the location of the HTML rendition etc… 
Scripting
13
13
NOTE: You need to have Windows Scripting Host (WSH) installed to use scripting.  WSH is a free
http://www.purepage.com Previous page Top Next page