Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
CHAPTER 14 Coercions A coercion is a conversion of a value of one datatype to a value of another datatype. This definition implies that there is some sort of equivalence or formula that determines the new value given the old value. In AppleScript, not just any old value can be turned into a value of just any old datatype. This chapter describes how coercions are per- formed and what coercions are possible. Implicit Coercion When you supply a value where a value of another datatype is expected, AppleScript may coerce silently if possible. This is called implicit coercion, and it takes place in