I have created a log usage function that records details of the script and some other information to a log file. As it stands now, I need to pass the name of the script to the function so that it will log the usage. For example:
log usage("Super fun script.jsl");I would like be able to have the function find the name of the script that is calling it so that I could type:
log usage();
and the log usage would know that "Super fun script.jsl" called it and record that to the usage log. This would save a lot of typing.
Many thanks,
John