IsScriptingLanguage Installed (XSIUtils)

Introduced

5.0

Description

Returns true if a scripting language specified with a name or scripting file is installed on the current platform.

Scripting Syntax

    XSIUtils.IsScriptingLanguageInstalled( NameOrFile )

C# Syntax

    Boolean XSIUtils.IsScriptingLanguageInstalled( String in_nameOrFile );

Parameters

Parameter | Type | Description
NameOrFile | String | A scripting language name or a scripting file name. Valid language names are: VBScript, JScript, PerlScript and Python. The scripting file name must contain one of the following file extensions: .vbs (VBScript), .js (JScript), .pl (PerlScript), .py or .pys (Python).

Return Value

Boolean

Examples

VBScript Example

       ' This example shows how to check for the supported scripting languages on the current machine.

       LogMessage "Look for installed languages with scripting names"
       LogMessage "Is VBScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "VBScript" )
       LogMessage "Is JScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "JScript" )
       LogMessage "Is PerlScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "PerlScript" )
       LogMessage "Is Python installed ?: " & xsiutils.IsScriptingLanguageInstalled( "Python" )
       LogMessage "==="
       LogMessage "Look for installed languages with scripting files"
       LogMessage "Is VBScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.vbs" )
       LogMessage "Is JScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.js" )
       LogMessage "Is PerlScript installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.pl" )
       LogMessage "Is Python installed ?: " & xsiutils.IsScriptingLanguageInstalled( "myscript.py" )

Autodesk Softimage v7.5