Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition
by Hamish Sanderson, Hanaan Rosenthal
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access