Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The run handler contains all the statements that will be executed when you run the script. A script can have only one run handler at most, but some scripts may have no run handler at all.
You may be wondering why you already wrote a bunch of scripts, but none of them has anything that looks like a run handler. This is because the run handler doesn't have to be explicitly defined. If a script doesn't contain an explicit run handler, then AppleScript assumes the script has an implicit run handler instead. An implicit run handler consists of all the statements found at the top level of the script, except for any property declarations, named script object definitions, and other handler definitions.