Lesson 4. Finding Objects

Location or Property

Finding Items by Location

Finding Items by Property

Chapter Summary

What’s Next?

This chapter is the second in a series of five chapters about identifying, finding, and manipulating scriptable objects in applications.

Finding specific scriptable objects is a task common to most scripts. For example, a script might locate all the TIFF image files in a given folder that were modified today. Or a script might locate all the occurrences of a specific phrase in a story and replace them with another phrase. Finding scriptable objects is a common task and something that AppleScript and scriptable applications do exceptionally well. In this chapter, we’ll cover the techniques used to locate specific scriptable ...

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.