Other features

    AppleScript includes several other features you should know about:
    Continuation character (¬): Lets you break up long lines.
    To enter the continuation character, type Option-Return.
    every file in control panels folder¬
    whose file type is "APPL"
    AppleScript treats this as a single line.
    Comments: Text that is ignored by AppleScript.
    Comments have two forms:
    (* This is a block comment, which must be
    placed between other statements. It can
    continue for several lines in the script. *)
    quit -- this is a comment at the end of a statement
    Identifiers: The names of things, such as a variable or the label of a property or handler.
    An identifier must begin with a letter.
    Case sensitivity: AppleScript is not case-sensitive.
    Abbreviations: AppleScript lets you abbreviate some terms. For example, you can use "app" instead of "application" in a Tell statement:
    tell app "Finder" print the front window
    Optional words: The AppleScript language lets you write statements as if they were sentences. Some terms, such as "the" in the previous example, are optional. You can use them if they help you understand the script, but they are not required by AppleScript.

 


Table of contents