Chapter 7. Working with Text

One of the tasks you will find yourself doing a lot in AppleScript is working with text in one way or another. This chapter covers the many aspects of text manipulation in AppleScript.

We will begin with a bit of background on how computers make sense of human-readable text. Next, we will study the various properties and elements of AppleScript's text objects, along with the standard operators and commands you can use to manipulate those objects. We will also spend some time exploring AppleScript's text item delimiters—a key feature when breaking text apart or joining it together.

Once you understand the principles behind working with text in AppleScript, we will round off the chapter with a couple of projects that put ...

Get Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.