GetFileArgument -- get file argument passed to a compiled script (V5.0)
f$ = GetFileArgument()
GetFileArgument() allows you to retrieve the file argument that was passed to a compiled Hollywood script. Thus, this function will only work correctly when used by executables that have been compiled with Hollywood because in script mode the file argument is obviously always the Hollywood script itself. GetFileArgument() extends the GetCommandLine() function because the latter only allows you to retrieve option arguments, not the file argument itself.

This function is especially useful when writing tools that should be able to act as viewers for certain file formats with Hollywood. By using GetFileArgument() you could create programs which can be used as a default tool for certain file formats.


the file argument passed to the compiled Hollywood script or an empty string if Hollywood is running in interpreter mode

Show TOC