Specifications

Returns an absolute path tofolderID
The resource folder is intended for use by
scripted plug-ins (see creating a scripted
plug-in) and should not be used from regular
script packages except for testing; there is no
reliable way to transport external resources
with regular script packages
The folder that serves as a common repository
for custom “global” Switch script data; it is
SciptData
shared by all scripts (and all users) so callers
must provide unique names for any files
stored in this folder
This is a subfolder of the Switch application
data root, which has the advantage that its
contents is relocated with all other
information relevant to the operation of
Switch, and can be easily located for
diagnostics purposes
Returns the system information indicated by the infoID argument,
which must be one of the strings listed in the table below. Returns
null if infoID is unknown.
getSystemInfo( infoID :
String ) : String
ReturnsinfoID
The login name of the current user (i.e. the
user who launched Switch server)
UserName
Returns true if the calling script is running on a 64-bit capable
operating system and processor, false otherwise.
supports64bit( ) : Boolean
Switch always runs in 32-compatibility mode. This function is
provided solely to inform a script about operating system capabilities.
For example, the script may use the information to select the
appropriate version of a third-party application.
The Windows operating system comes in two distinct flavors (32-bit
and 64-bit), so this function returns true only if it runs on a 64-bit
Windows version.
Mac OS X supports a mix of 32-bit and 64-bit applications when
running on a 64-bit capable processor, so this function returns true
when running on a 64-bit capable processor. Note that all
Intel-based Macs are 64-bit capable.
Returns the version of the Switch server hosting this execution as a
decimal number: “major version + update number / 100”.
getServerVersion( ) :
number
For example, Switch 08 update 6 returns the number 8.06.
455
Enfocus Switch 10