WindowStream Values

The WindowStream class allows you to output strings to a script Editor window. This is useful for directing output to a separate window for ease of inspection, editing, or later saving to a file.



Opens an empty script Editor window and returns a WindowStream value.

Associated Methods

print to:


format "" {values} to:

Output to a WindowStream is inserted at the current cursor position in that window.


When using the format() function with a WindowStream, a new line in the Editor window is not displayed until an end-of-line character ("\n")is output.


debug = newScript()


print $foo to:debug


format "name is %\n" to:debug