A scripted plug-in must be located in the special "scripted-plugins" folder located near the Switch Server executable. Each plug-in consists of a folder (inside the "scripted-plugins" folder) that contains a single script package (with the filename extension .sscript) and any additional resources used by the scripted plug-in.
Scripted plugins created by anyone other than Enfocus must be located in a folder called "third-party-plugins" located next to the regular "scripted-plugins" folder. After a fresh install this folder is empty.
The Switch installer places a number of built-in scripted plug-ins in the appropriate location.
A scripted plug-in can obtain the absolute path to its plug-in folder through the getSpecialFolderPath("PluginResources") function offered by the Environment class. This allows a scripted plug-in to access resources contained in its plug-in folder (that is, next to the script package).