Scriptwindow.htmlTEXTVIZF iAAj Script Windows

Script Windows

Introduction

Script windows behave like the windows of Apple's Script Editor (click here for the page on the comparison with Script Editor). Compiled scripts, applets and droplets, open as script windows.
To create a new script window, select "New script" (  N).
A script window has one of three colors depending on the preferences settings . This differentiates them from the text windows , which are white. The text windows of Smile are not ordinary text windows, do not skip the page about them.

The bottom bar

The bottom bar of the script window includes a "C" button, a run button, a check syntax button, and a pull-down menu which lists handlers.

- "C" button ( "C" = Comments pane)
Click this button to hide / display the comments pane. Smile and Script Editor's comments are compatible.
- Run Button (gray triangle pointing to right)
Click this button to execute the script. This has the same effect as selecting "Run script" in the 'Edit' menu .
- Check Syntax Button (  )
Click this button to compile the script. This has the same effect as selecting "Check syntax" in the 'Edit' menu .
Optionally, you can also press the Enter key to check syntax.
- Handlers Menu
Click "Handlers" to open a menu showing the names of all handlers included in the script window. Option-click on "Handlers" menu to have the handlers displayed alphabetically. Use the keyword " -- mark" to insert tags in the menu.

Applets or droplets

Use the "Save as ..." menu item to create an applet or droplet. If you are not familiar with making applets and droplets, you may want to read Applets and Droplets first.

Run-only scripts and applets

Use the "Save as ..." menu item to create a "run-only" ( = non-editable) copy of your script.

Recording

Recording can be of much help while writing scripts, (provided the application you want to script is recordable). To turn recording on and off, use "Record" in the 'Edit' menu .

 _rS9 SS9 XrSrrSS X X X  r r S r r  SrS XS  S rrr9 9S  r9z9 X r [    k  (  k   k   k#  n        (  k,  d  ky    k    k          F  s        k@  T  k    k!  4  k8  S  kW    k    k    k  t          k    k    k    k    k  w          k    k    k$    k P  g  k  .  c  }    k   k !   k   k        k   selelist long long pbndlist8long longMlonglongBDrwfalspvistrueWIDLfalsICFFlongrSiDlongptxfTEXTGenevaptpslong Rectlist8longlonglonglongWTBHlongRqULlongLWdtlongBrWdlongAuAdfalsTbSzlong scptscptVFasdUAS 1.101.10  misccura"  CONT  misccura  cwtxD  kfrmID ascr ޭ _@5ZstylSOUP&reco2"&Acwtx