Name

null

Description

Like missing value, this is implemented as a class with no values. I've never found a use for it in communicating with a scriptable application, nor have I ever seen an application return it as a result. But I do sometimes use it in my own scripts, as a way of giving a variable or record item a value that signifies "No value has been assigned yet" without its being undefined. Examples have appeared in "The Run Handler" in Chapter 9 and "Record" in Chapter 13.

Example

set aPerson to {name:null, age:null, town:null}

Get AppleScript: The Definitive Guide, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.