Section DevTools

Some dev tools for script authors

Summary

Return typeFunction and summary
 RecentScriptsAdd(string path, string name)
In debug mode, add current script to the "Recent scripts" list.

Function

RecentScriptsAdd(string path, string name)

In debug mode, add current script to the "Recent scripts" list.

This is a tool for devs that allow them to quickly run or edit most recents scripts, from Scripts > Miscellaneous > Dev tools > Recents scripts

ParameterTypeDefaultDescription
pathstringGetCurrentPath() Directory where the script is stored
namestringApplication.CurrentScriptNameScript file name
Usage

-- At the beginning of your script
 Include "SMUtils"
 RecentScriptsAdd()
 -- Run at least once your script from the editor (in debug mode)