Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In this chapter we looked at how to define our own custom commands by adding handlers to our scripts.
You learned how to pass objects into handlers as parameters, and how to return them as results. We looked at how parameters can be specified either by position, which is the simplest approach, or by label, which allows user-defined commands to use a syntax similar to that used by scriptable application and scripting addition commands, making it easier to see the meaning of each parameter.