Originally posted as a Categorized Question.
In reply to How do I determine the name of the calling script? by Anonymous Monk