Lesson 3. Identifying Objects

Object References

Nested References

Path References

Alias References

UNIX References

File URLs

Chapter Summary

What’s Next?

Nearly all scripts have one thing in common: they contain references to scriptable objects. For example, a script that rotates all the images in a folder contains references to the image files to be rotated. A script that adds annotations to a group of QuickTime movies contains references to the movie files to be edited. A script that applies formatting to the paragraphs in a story contains references to the targeted paragraphs.

To AppleScript, every item or thing it encounters is an object. Referring to scriptable objects is an essential technique that all good scripters understand and use ...

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.