Language Guide

CHAPTER 2
Overview of AppleScript
Script Objects 23
AppleScript does not distinguish uppercase letters from lowercase variables in
variable names; the variables myName, myname, and MYNAME all represent the
same value.
Script Objects 2
Script objects are objects you define and use in scripts. Like application objects,
script objects respond to commands and have specific information associated
with them. Unlike application objects, script objects are defined in scripts.
Script objects are an advanced feature of AppleScript. They allow you to use
object-oriented programming techniques to define new objects and commands.
Information contained in script objects can be saved and used by other scripts.
For information about defining and using script objects, see Chapter 9, “Script
Objects.” You should be familiar with the concepts in the rest of this guide
before attempting to use script objects.
Scripting Additions 2
Scripting additions are files that provide additional commands or coercions
you can use in scripts. A scripting addition file must be located in the Scripting
Additions folder (located in the Extensions folder of the System Folder) for
AppleScript to recognize the additional commands it provides.
Unlike other commands used in AppleScript, scripting addition commands
work the same way regardless of the target you specify. For example, the Beep
command, which is provided by the General Commands scripting addition,
triggers the alert sound no matter which application the command is sent to.
A single scripting addition file can contain several commands. For example, the
File Commands scripting addition includes the commands Path To, List Folder,
List Disks, and Info For. The scripting additions provided by Apple Computer,
Inc., are described in the book AppleScript Scripting Additions Guide. Scripting
additions are also sold commercially, included with applications, and
distributed through electronic bulletin boards and user groups.