Outputwindow.htmlTEXTVIZF yL Output Windows

Output Windows

Introduction

Smile lets you run scripts from a script window (colored background), or from a text window (white background). In both cases, there is a standard mechanism to display the result of the execution of the script, and a way of customizing this behavior.
Also, you can choose not to display the result of the execution if running from a text window.

Standard output of a script run from a text window

By pressing the Enter key, you can launch the execution of the current script line (line of cursor location), or of the selected script line(s), in a text window. See Text windows if you are not familiar with this feature.
By default, the result of the execution of a script contained in a text window will be appended to the contents of the window.
Optionally, depending on the preferences settings , the result can be prefixed with the double hyphen "--" used in the AppleScript language to "comment out" script lines.

Standard output of a script run from a script window

By pressing the "Run" button (the "start" arrow icon at bottom of script window), or using the keyboard shortcut  R, you can launch the execution of the "run" (or unnamed) handler of a script window.
By default, the result of the execution of this handler will be appended to the contents of a special text window, named Worksheet .
If the "Worksheet" window is not open, it will automatically open to display the result.

Redirecting the output

You can redirect the results to another window. Create a new output window by selecting "Output window" ( User Scripts ) or use the keyboard shortcut  L. The new output window assumes the same name as the previously active window, with the suffix ".out" appended.
When this is possible, the output window will be aligned with its "mother" window, just below it.
An output window is a regular text window .
Output windows can be used to display the output (result) from a text window or a script window.

Suspending the output

Running selected script lines contained in a text window is very convenient. The display of the result is sometimes useful, but can also be overwhelming, in particular when the result of the script contains lots of data.
You can prevent the output of a script executed from a text window, by appending a colon (":") at the end of it.
The colon is very useful when variables are used that contain lots of data. This prevents the window (where the result would normally be displayed) from becoming overloaded, with what could be megabytes of unwanted data.
Because of a bug, some versions of AppleScript crash when they display the "null" character (ASCII character for 0). Thus, if some variable is suspected of carrying null characters, it is good practice to prevent AppleScript from trying to display it, by using the colon.
The colon at the end of a line is not part of the AppleScript language, so you cannot use it in a script window, only in text windows. It is just a feature added to the command interpreter of Smile. The colon at the end of a particular script line or block is like a command saying "not verbose". In no case will it work in a script window.

  _kScripts de modem 7q,!! @kService PrintMonitoroAPPLprmt! l=PSPp_ plkSlecteur d.O    k  (  k   k   k#  !  k%    k    k          *  k.    k      #  '    k    k-    k    k    k!            k  >  k    k    E  U  Y  |  k   k    k   |  k       k  O  k   k   k    k    k    k  j  k  selelist long long pbndlist8long@long+longlongBDrwfalspvistrueWIDLfalsICFFlongrSiDlongptxfTEXTGenevaptpslong Rectlist8longlonglonglongWTBHlongRqULlongLWdtlongBrWdlongAuAdfalsTbSzlong scptscptVFasdUAS 1.101.10  misccura"  CONT  misccura  cwtx  kfrmID ascr ޭ  _@5@ZstylSOUP&reco226A\cwtx