Script Files [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
Script Files
Strengths
Interactive Scripts tend to be interactive with the user. They
can prompt the user for information or use an open
ended HP Desk command and HP Desk will do the
prompting. For example, a script can send a message
in two ways. It can SEND an item to a Distribution
List, having previously prompted for, or worked out
for itself, which item to send and which Distribution
List to use. Alternatively, it can just issue the
SEND command with no parameters and let HP Desk
prompt the user for a subject and distribution list
as it would if the user had typed the SEND command.
Full HP Desk Scripts have full access to HP Desk. Therefore, they
access tend to be used to move items around HP Desk. For
example, you could write a Script file if you wanted
to move items from your Filing Cabinet to your Work
Area, or from your Work Area to your Calendar.
Can run Script files can be used to start up applications
applications from within them, and they will continue after the
application has terminated.
Can be run by Scripts can be executed by an application and then
applications return control to the application, for example to
mail a report that the application has generated.
Good user security Scripts provide security, as you can define exactly
who can use a script when you install it. HP Desk
checks if a person is authorized to use a particular
script before running it.
Easy to write Fairly complicated scripts can be written with little
programming experience.
Can pass in Scripts can answer interactive HP Desk prompts that
variables would otherwise be answered by the user. For
example, if a script sends a message, the script can
respond with the names of the people on the
Distribution List, and can even pass them in as
variables.
Considerations
Do not have full Scripts do not provide a full file handling facility,
file handling for example, you cannot write to an MPE file from a
capabilities script. If you need to use complicated file
handling, you should write a program to do this.
Basic error Scripts do not provide sophisticated error checking
checking facilities, so you should keep them simple.
MPE/iX 5.0 Documentation