Is the scriptname stored by the script command accessible?

Code:
script "scriptname";
notify playername;
will notify playername that scriptname was run.

Is there any way to access scriptname, otherwise?

When debugging, I sometimes find it helpful to have scripts output their name while processing, especially when one script includes or calls others. Of course, I can hardcode each script's name into its output, but it would be handy to simply use scriptname, and since we already have a way to store it, I'm hoping there's also a way to access it.
 

Bale

Minion
Interesting question. Unfortunately while there is an ASH predefined string constant __FILE__ which is the filename of the current script, I don't know of any way to access the script name when it is different from the file name. Perhaps you can make use of this for your purpose?
 
Top