alternateLanguages

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the alternateLanguages
alternateLanguages()
Summary

Returns the list of 'active scripting' languages that are installed on the system.

Introduced1.1
Changes
  • Support for running JavaScript on Web systems was added in version 9.0.0
OSmac, windows, web
Platformsdesktop
Example
the alternateLanguages
if "AppleScript" is among the lines of the alternateLanguages then
    do tScript as AppleScript
end if
Values
NameTypeDescription
return

The alternateLanguages function returns a list of script languages, one per line.

RelatedCommand: do
Glossary: LiveCode, return
Control Structure: function
Description

Use the alternateLanguages function to find out what scripting languages (in addition to LiveCode) are available for use with the do command.

Mac OS and OS X systems support system-wide script languages (such as AppleScript) through the Open Scripting Architecture (OSA). You can write statements in any OSA language and execute them using the do command.

Windows systems support scripting through the "active scripting" functionality of the Windows Script Host. You can write statements in any "active scripting" language and execute them using the do command.

Web systems support executing JavaScript within the context of the browser host.