This method returns official server scripts as a list of
OriginalFile objects.
These scripts will be executed by the server if submitted
via
runScript. The input parameters
necessary for proper functioning can be retrieved via
getParams.
The
OriginalFile.path value can be used
in other official scripts via the
language specific import command, since the script
directory will be placed on the appropriate
environment path variable.
scripts = scriptService.getScripts()
for script in scripts:
text = scriptService.getScriptText(script.id.val)
# First character is a "/" symbol
path = script.path.val\[1:\]
path = path.replace("/",".")
print "Possible import: %s" % path