The Script.Path property returns the complete path of the root APG script.
VBScript:
JScript:
See Script.Filename.
Script Object