retrieving the document name should be easy, try something from:
Returns a string containing the name of the current QlikView document, without path but with extension.
Returns a string containing the full path to the current QlikView document.
Returns a string containing the title of the current QlikView document.
I don't know a way to get the reload trigger information from within the script execution, maybe you can use a task in the server to write a flag file before reoloading or something like that and check for the file in the script.
>Furthermore I would like to know whether my reload is initiated by the server scheduler or in the foreground by a user. >Would that be possible?
I have faked this test in the past by testing the ComputerName() or OsUser() function. If it's the server name or server userid, I assume it's a server reload.