Home     Tour     Features     Order     Support     Contact  
 
 

Python Script

[Professional and Corporate Editions Only]
You can use Python to generate all or parts of your message. To engage the script, use the Script macro. Below you can find more details:

Language name Python

Distributor: ActiveState Software Inc.

Web site: http://www.activestate.com/

Installation: The distributer provides ActivePython installer that installs both the language interpreter and active scriting engine.

Known issues:

In some situations, non-ascii characters (such as Japanese or Russians) may be treated incorrectly. If you use such characters, test carefully.

Values retrieved from data fields of currency type are treated incorrectly.

If you want variables to persist while the script switches from one recipient to other they must be declared as global.

Sample script

hours = recipient.Hours
if hours.unknown:

worked = 0

else:

worked = hours.value


left = 10 - worked
if left <= 0:

document.skip()

else:

document.write(recipient.item("Supervisor").text)
document.write(" reports that you ")
if worked == 0:

document.write(" have not worked on your assignment. ")

else:

document.write("only worked for ")
if worked == 1:

document.write(" one hour. ")

else:

document.write("%(worked)d hours. " % {"worked": worked})

document.write("You need ")
if left == 1:

document.write(" one more hour. ")

else:

document.write("%(left)d more hours. " % {"left": left})



 
   
 Home     Tour     Features     Order     Support     Contact  

Copyright © 1995-2014 Northern Software Inc. All Rights Reserved