User Tools

Site Tools


Sidebar

dictionary:events:thisscript

This Script

while running a global script this verb can be used to get the name of the currently running script. So if you need to reference the script you can do so with this so that if you want to change the name of the script later you wont have to do a lot of script editing. This is only set during the running of a global script.

If a scripting error occurs while a global script is running thisScript will also be set before the Script Error Alert script is run so that you can use that information to alert or log more info.

Usage:

thisScript
returns text the name of the script.

Examples:

--need to run this script again
execute (ThisScript) in 5 * minutes

See Also:

dictionary/events/thisscript.txt · Last modified: 2020/05/21 13:43 by James Sentman