screenName

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the screenName
screenName()
Summary

Returns the name of the current screen.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
the screenName
put "myApp -d" && the screenName into commandLine
Values
NameTypeDescription
return

The screenName function returns a string.

RelatedKeyword: string
Command: open process
Function: shell, value, screenVendor
Control Structure: function
Glossary: function call, argument, return, command, process
Description

Use the screenName function to control where applications that LiveCode starts up should appear.

On Unix systems, the screenName function returns the string provided by the XDisplayName function call. When starting a process with the open process command or the shell function, if you want the process to appear on the same screen as LiveCode, use the value returned by the screenName as the argument to the -d option.

This function does not return a useful value on Mac OS and Windows systems.