Lesson 17. Working with Text

Basics

The length Property

Concatenation

Quoting Text

The offset Command

Text and Character Ranges

Text Item Delimiters

Characters, Words, and Paragraphs

The Many Forms of Text

The summarize Command

What’s Next?

The manipulation of textual data is one of the most common script actions. Nearly every script works with text in some manner, whether it’s parsing filenames, creating display messages, or editing word-processing documents. This chapter contains an overview of the standard text tools incorporated into the AppleScript language and how they are used in common practice.

Basics

First of all, what is text? To AppleScript, textual data is a collection of characters. Traditionally in AppleScript, the terms ...

Get Apple Pro Training Series: AppleScript 1-2-3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.