type, name$[, hw$] = GetProgramInfo()
GetProgramInfo() will return two values: The
first return value specifies the program type currently running inside
Hollywood. This variable can be #PRGTYPE_SCRIPT for Hollywood scripts,
#PRGTYPE_APPLET for Hollywood applets, or #PRGTYPE_PROGRAM for compiled
executables. The second return value is a string which contains the file
name of the currently running program. If the currently running program
is an applet or a script, its name will be returned in name$. If the
currently running program is a compiled executable, name$ will receive
the file name of this executable.
If the currently running program is an applet or a script, there will
be a third return value hw$. This return value will contain the file
name of the Hollywood interpreter used to run this applet or script.
#PRGTYPE_SCRIPT,
#PRGTYPE_APPLET or #PRGTYPE_PROGRAM)