RunInternalScript

LuaFAR for Editor

RunInternalScript


result = utils.RunInternalScript (name, ...)

Parameters:
  name:    string
             either field name in package.preload table (without prefix "<"),
             or file name relative to plugin dir (without suffix ".lua").
  ... :    additional parameters (optional)

Returns:
  result:  any type

Description:
  This function is intended to run utilities coming with the plugin (as opposed
  to "user's utilities"). Those utilities can either be part of the plugin's DLL
  ("embedded"), or located in disk files.

  For example, given argument name == "wrap", the function will first try
  to run a script from package.preload["<wrap"], then from the file
  <plugin_directory>/wrap.lua.