O'Reilly logo

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition by Hanaan Rosenthal, Hamish Sanderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required