Archives for September 2007

MacScripter AppleScript Article > Getting Started with Handlers (Part 3)

Getting Started with Handlers (Part 3).

This month's column serves as the last in a series of columns covering handler usage in AppleScript.

Part 1 of this series introduced handlers and discussed the benefits of writing and using subroutine handlers. It also looked at writing and calling subroutine handlers, as well as proper usage of handler parameters.

Part 2 of this series discussed the scope of variables with regard to handlers, explained how to return values from handlers, and demonstrated how to call handlers from within application tell statements.

So far, our handler discussions have been focused primarily around subroutine handlers, i.e. custom handlers that you write yourself and call throughout your script. In this month's column, we will discuss another type of hander: command handlers. [Read more at MacScripter...]

MacScripter AppleScript Article > Getting Started with Handlers (Part 2)

Getting Started with Handlers (Part 2).

Last month's column focused on providing an introduction to handlers, discussed the benefits of using subroutine handlers, explored writing and calling subroutine handlers, and discussed handler parameter usage.

In this month's column, we will continue discussing handlers, in preparation for using AppleScript Studio to create interface-rich AppleScript solutions that have the same look and feel of any other Mac OS X application. [Read more at MacScripter...]

MacScripter AppleScript Article > Getting Started with Handlers (Part 1)

Getting Started with Handlers (Part 1).

Welcome AppleScript developers! Some of you may be familiar with my regular AppleScript columns in X-Ray Magazine and MacTech Magazine. I am pleased to announce that, in addition to my columns in those fine publications, I will be writing regular AppleScript columns, presently on a monthly basis, for MacScripter. Be sure to check back on a weekly basis, though, for excellent AppleScript-related columns by many other great authors!

I have chosen to begin my column here at MacScripter by providing an introduction to handlers, a topic that will end up spanning three articles . My reason for choosing this topic is that shortly, I plan to start focusing on AppleScript Studio. Since AppleScript Studio development requires heavy use of handlers, and since every AppleScript developer should be making use of handlers on a regular basis anyway, it only seems fitting to begin with this topic. Let's get started. [Read more at MacScripter...]