Basics of AppleScript

Calling A Handler

Script [14.2.1]:

on method1()
    display dialog "This handler was executed"
end method1
method1()

Explanation: In order to call a handler we just type the handlerName. And all the commands in the handler block will get executed.