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_SCRIPTfor Hollywood scripts,
#PRGTYPE_APPLETfor Hollywood applets, or
#PRGTYPE_PROGRAMfor 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.