From NSB App Studio
NSB.id returns a string with the (file) name of the currently running app. This global property can be read, but not set.
Rem NSB.id Example Rem My example app's file name is HelloWorld.nsx Print "The name of my app is " & NSB.id
The name of my app is HelloWorld