Lesson 5. Special Folders

Domains

Enumeration Constants

Creating References to Items in Special Folders

Chapter Summary

What’s Next?

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

It’s inevitable that sooner or later you’ll want to share scripts you’ve written with others. And it’s just as inevitable that a script that worked perfectly on your computer won’t work as expected on your friend’s computer. This sometimes happens because your script contains references to folder and file locations on your computer that do not exactly match those on another computer.

For example, a reference to a file named “cars.pdf” in the Documents folder would appear on Sal’s ...

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.