Installing Scripts [ HP DeskManager Customization ] MPE/iX 5.0 Documentation
HP DeskManager Customization
Installing Scripts
Once you are happy that your script works the way you want, you may
decide that it could be of use to other people. If you have Script
Administrator or System Administrator capabilities, you can install it
for other people to use. See HP DeskManager Administration for
information on the INSTALL command.
NOTE You can only install scripts for use by groups of which you are a
member.
The HP Desk INSTALL command is used to interactively install a script.
An example is shown below.
Installing a Script
Workarea > INSTALL SCRIPT
COPY SCRIPT FROM > "" of wa
I don't know which item you mean by "".
1 Go to Waste Basket script
2 Data Entry program script
3 Customer report
Please choose one. press return. or type // to quit >> 2
Enter the command name for the script > DPROG
Is this script to be an application? (yes) > YES
Enter a description > Data Entry program
Enter the group names who may access this new command:
(Type // to terminate the list).
Group: Everyone
Group: //
Script command DPROG installed.
Workarea >
In the above example, the prompt as to whether or not the script should
be an application was answered with "YES". HP Desk then requests that a
description be entered. If the application prompt had been answered with
"NO", a prompt for description would not be issued.
Making a script an application simply means that it will be listed in the
HP Desk Applications Area of those users for whom access to it is
granted.
Note that you cannot install a script file if there is already one
installed with the same identifying name, or if an abbreviation of the
same name is installed.
Reading an Installed Script
Reading the text of an installed script can only be accomplished in the
Applications Area.
Applications > READ "DPROG"
Script file command: DPROG
Group settings:
Everyone
:FILE HOMEPARM=HOMEPARM.DATAPROG.HPOFFICE
:RUN DATAPROG.DATAPROG.HPOFFICE
&EXIT
Applications >
You can only read script files if you are a member of all of the groups
for which that script file was installed.
Listing Installed Scripts
Getting a list of script files can be done either using the SYSTEMLIST
command and then choosing the script files option, or by using the
SYSTEMLIST SCRIPT command. You can see all of the installed script files
that you have the group capabilities to see.
Applications > SYSTEMLIST SCRIPT
Do you want this list sent to your default
print device (No) > NO
Name Description
DPROG Data Entry program
Group settings:
Everyone
ABBREV
Group settings:
Everyone
Applications >
In the above example DPROG has a description because it is an
application, but ABBREV is not an application, therefore no description
is given.
Copying an Installed Script into the Work Area
It may be necessary to modify a script after it has been installed and
the source discarded. HP Desk permits the recovery of script contents
using the COPY command.
Workarea > COPY FROM SCRIPT
script command name: DPROG
Copying . finished
Workarea >
or
Workarea > COPY FROM "DPROG" OF SCRIPT
copying. finished
Workarea >
Removing a Script
Workarea > remove script
Enter name of command to remove > DPROG
DPROG is a script file.
Do you wish to remove it? (no) > YES
Script command removed.
Workarea >
MPE/iX 5.0 Documentation