Lesson 19. Action Clauses

Considering and Ignoring

With Timeout

What’s Next?

AppleScript makes assumptions about many things you probably take for granted, such as that string comparisons are usually performed without regard to capitalization. These assumptions are similar to preference settings in an application. They are set by default to the behavior you might expect most of the time, so you usually don’t have to think about them. But they may not always be appropriate for a particular task, and AppleScript lets you change them.

For example, when you compare two words, AppleScript assumes you don’t care about capitalization. But what if you’re working with proper names, and you want to pick out every reference to some guy named Carpenter ...

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.