Auto Save and Versions

In the beginning, Jobs created the Save command—because computers were slow.

Every time you saved, your work was interrupted for a few seconds (or a lot of seconds) as the very slow program on your very slow computer saved your work onto a very slow floppy disk.

And that, ladies and gentlemen, is why most programs still don’t autosave: because the interruptions were just too annoying.

Apple figured it’s high time the world revisit that scenario. Computers now have plenty of horsepower. They could be saving your work continuously, and you’d never even know it. Why shouldn’t all programs save your work as you go, automatically and invisibly? As long as you also have the option to rewind and take your document in a different direction, what could possibly be the harm?

And so it is that, in OS X today, Auto Save is here. Unfortunately, it’s available in only a few programs. You’ll find it in Apple’s showcase programs: Pages, Keynote, Numbers, Preview, and TextEdit.

There are some useful tricks in the Open and Save boxes that might not occur to you.First, you can open or save a document directly to or from your iCloud Drive, of course (page 229). But certain anointed apps, like TextEdit and Pages, have special folders of their own on your iCloud Drive, named after themselves. When you save or open, you can choose either this special folder or your iCloud Drive in general (top).Second, you can rename a document right in the Open box’s list of files (bottom). Just right-click (or two-finger click) its name; from the shortcut menu, choose Rename.Who knew?

Figure 5-28. There are some useful tricks in the Open and Save boxes that might not occur to you. First, you can open or save a document directly to or from your iCloud Drive, of course (page 229). But certain anointed apps, like TextEdit and Pages, have special folders of their own on your iCloud Drive, named after themselves. When you save or open, you can choose either this special folder or your iCloud Drive in general (top). Second, you can rename a document right in the Open box’s list of files (bottom). Just right-click (or two-finger click) its name; from the shortcut menu, choose Rename. Who knew?

In these programs, your document is saved every time there’s even the tiniest pause in your typing or working—in the background. No progress bar, no interruption. If you quit or close the document without remembering to save, no problem: Your work will be there when you open the document again later.

Note

“But wait a minute,” cry the masses—“I like being able to close a document without saving changes! Sometimes all I wanted to do was fool around, play ‘what-if’ games—and then close it without saving changes!”

Just for you, Apple offers a pair of sneaky little checkboxes in System Preferences→General. First, “Ask to keep changes when closing documents.” If that’s turned on, then when you close a document with unsaved changes, the Mac asks if you want to keep the edits, just as it does in all other programs.

But if you quit the program without saving, your changes are auto-preserved; Auto Save apps autosave your documents when you quit their programs, so you can pick up where you left off the next time. You can override that, too, if you like; turn on “Close windows when quitting an application,” also in System Preferences→General. Now you’ll get the “Save changes?” box when you quit the app with unsaved changes.

In those enlightened programs that work with Auto Save, there’s a more complicated but more powerful feature at work: Versions. It’s an invisible paper trail of every in-progress condition of your document—and you can return to any earlier version at any time. You can even return to an earlier version and copy just a chunk of it into the current version, which is great when one paragraph of your previous draft was gold but the rest was junk.

The Versions world of document management is quite a bit different from the old setup. Here’s what you need to know:

The point of all of this, of course, is to make it easy to go back in time—to undo the mediocre work you’ve done, or to resurrect some genius work that you later deleted.

The quick way is to choose File→Revert to→Last Saved (or Last Opened). That command restores the document to the last snapshot version (or to the way it was when you most recently opened it, if no new versions have been created). That, of course, is nothing new; lots of programs have Revert to Saved commands that work similarly.

What’s new is that you can revert your document to any snapshot, even an ancient one from weeks or months ago.

To do that, choose File→Revert to→Browse All Versions.

After a moment, you see the stunning display shown in Figure 5-30. On the left, you see your document in its current condition. On the right, you see a stack of windows that represent all the different snapshots of your document, going back in time. (And behind it all, you see another sort of version: Apple’s animated, starry version of the galaxy.)

You can have all kinds of productive fun in this version browser: