GetPlatform

Returns a string representing the OS of the computer on which the MetaScript is being executed.

Core function

Syntax

GetPlatform()

Description

GetPlatform is a top-level function and is not associated with any object.

You can use this function to obtain the string representation of the operating system of the computer on which the MetaScript is being executed: "mac" for the Macintosh, and "windows" for Windows.

Examples

The following example shows the use of GetPlatform:

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.