Difference between revisions of "ObjectType:lavishscript"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
*[[DataType:string|string]] '''Version''': LavishScript version number (e.g. 1.07)
 
*[[DataType:string|string]] '''Version''': LavishScript version number (e.g. 1.07)
 
*[[DataType:filepath|filepath]] '''CurrentDirectory''': Current directory according to LavishScript
 
*[[DataType:filepath|filepath]] '''CurrentDirectory''': Current directory according to LavishScript
 +
*[[DataType:filepath|filepath]] '''Executable''': Executable filename for the current process
 +
*[[DataType:string|string]] '''ExecuteAtom['''name''','''...''']''': Executes an atom with the given name in global- or script-scope (if a script is currently in context).  Extra parameters are passed as parameters to the atom.  If the atom returns a value, this will be the string given.
 
*[[DataType:filepath|filepath]] '''HomeDirectory''': Home directory according to LavishScript
 
*[[DataType:filepath|filepath]] '''HomeDirectory''': Home directory according to LavishScript
 
*[[DataType:int|int]] '''RunningTime''': Amount of time, in milliseconds, the current application has been running.  This value wraps after about 23 days of leaving the application running.
 
*[[DataType:int|int]] '''RunningTime''': Amount of time, in milliseconds, the current application has been running.  This value wraps after about 23 days of leaving the application running.
 
*[[DataType:string|string]] '''LSModule''': LavishScript version number
 
*[[DataType:string|string]] '''LSModule''': LavishScript version number
 +
 
== Methods ==
 
== Methods ==
 
*'''ExecuteAtom['''name''','''...''']''': Executes an atom with the given name in global- or script-scope (if a script is currently in context).  Extra parameters are passed as parameters to the atom.
 
*'''ExecuteAtom['''name''','''...''']''': Executes an atom with the given name in global- or script-scope (if a script is currently in context).  Extra parameters are passed as parameters to the atom.

Revision as of 21:05, 23 February 2006

Description

Members

  • string Version: LavishScript version number (e.g. 1.07)
  • filepath CurrentDirectory: Current directory according to LavishScript
  • filepath Executable: Executable filename for the current process
  • string ExecuteAtom[name,...]: Executes an atom with the given name in global- or script-scope (if a script is currently in context). Extra parameters are passed as parameters to the atom. If the atom returns a value, this will be the string given.
  • filepath HomeDirectory: Home directory according to LavishScript
  • int RunningTime: Amount of time, in milliseconds, the current application has been running. This value wraps after about 23 days of leaving the application running.
  • string LSModule: LavishScript version number

Methods

  • ExecuteAtom[name,...]: Executes an atom with the given name in global- or script-scope (if a script is currently in context). Extra parameters are passed as parameters to the atom.
  • RegisterEvent[name]: Registers an event of <name>

Returns

Same as Version

Examples

Display LavishScript version

  • echo Version: ${LavishScript.Version}

Display current directory

  • echo Directory: ${LavishScript.CurrentDirectory}

Display amount of time application has been running

  • echo Time running: ${LavishScript.RunningTime}


Operates On

none

See Also