Specifications
multiple licenses are activated, the license with the longest license
time period is used.
Returns the name of the currently active language preference, in
English. For example, the currently implemented languages are
“English” and “German”.
getLanguage( ) : String
Returns the name of the currently active language environment
preference, in English. For example, the currently implemented
language environments are “Western” and “Japanese”.
getLanguageEnvironment( )
: String
Returns the serial number (max. 9 digits) associated with the
license entered in the Switch licensing dialog. If multiple licenses
getLicenseSerial( ) : Number
are activated, the license with the longest license time period is
used. This is always a positive integer, or zero if Switch has not
been properly licensed.
Returns true if Switch currently runs in trial mode; false otherwise.
isInTrialMode( ) : Boolean
Returns true if Switch currently runs in trial mode or if the
specified license feature with at least the specified version is
isLicenseFeatureEnabled(
feature : String, version :
Number ) : Boolean
currently enabled (because an appropriate license key has been
successfully activated through the Switch licensing dialog); false
otherwise.
Note: This function is intended solely for internal use by Enfocus
or a technology partner employing the Enfocus activation-based
license server.
Getting system information
Returns true if the calling script is running on Microsoft Windows,
false otherwise.
isWindows( ) : Boolean
Returns true if the calling script is running on Apple Mac OS X, false
otherwise.
isMac( ) : Boolean
Queries the system for an application that has been registered with
one of the specified keys, and returns the absolute path of the
findRegisteredApplication(
key1 : String, key2 : String
) : String
application if found or null if not. The function verifies that the
returned path is valid (that is, a file exists at the location); if not
null is returned instead.
There are two key arguments so that a single call can specify the
keys required for two different operating systems. The function
automatically figures out which key to use on each operating system.
The second key argument can be omitted if it is not needed.
On Windows, the function queries the system registry with the
specified key, which must be an absolute registry path. Most
professional application installers make a registry entry for this
purpose but there is no guarantee.
453
Enfocus Switch 10