in reply to How do I determine the name of the calling script?
Originally posted as a Categorized Answer.