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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.