Did You Know Most Mac Apps Keep Versions of Your Documents as You Work?

We all make mistakes, which is why Undo exists. Immediately choose Edit > Undo or press Command-Z to undo your last change. Most Mac apps support multiple levels of Undo, so you can keep pressing Command-Z to revert change after change. However, suppose you delete a table in your Pages document, but 30 minutes and many changes later, you decide you want it back. Undo won’t help because you want to keep all the other interim changes, and Time Machine backups may not help because a backup may not have occurred at the right time.

Since OS X 10.7 Lion, Mac apps have been able to take advantage of a built-in Apple technology called versioning to save users from such situations. Apps that support versioning create a separate version of each document every time you save manually or the app auto-saves, at least once per hour. You can browse through all those versions in a Time Machine-like interface and copy data from a previous version or revert the current document to a previous state.

Some cross-platform apps, and those with a long history and legacy architecture, such as Microsoft Word, Excel, and PowerPoint, don’t support versioning, but most modern document-centric apps do. You can identify version-capable apps by the presence of a Revert To command in the File menu.

How Versioning Works

As you work, whenever a document is saved, either automatically by its app or because you chose File > Save or reflexively pressed Command-S, the previous version is added to a database of versions stored in a hidden folder on the same volume. When a file is deleted, all its versions are removed, too, so there’s no worry about wasting storage space on long-deleted files.

When you discover you need to recover some data from an older version of a file, you choose File > Revert To > Browse All Versions, which opens a Time Machine-like browser for exploring all the previous versions. On the right, you can click the arrows to scroll through previous versions, comparing them visually against the current one on the left. A few apps provide additional ways of comparing versions.

Once you’ve found the version you want, you can try copying the desired content and pasting it into the current version of your document on the left—depending on the app and type of document, you may not even have to leave the version browser.

If copying and pasting doesn’t work, you can instead click Restore to revert the document to that previous version. Unlike Time Machine, the version browser doesn’t ask if you want to overwrite the current version, so if you aren’t sure you want a wholesale reversion, press Option to change the button to Restore a Copy. That opens a separate copy of the document in the app so you can pick and choose what you want to move from the old version back into the current version.

More Versioning Details

Although versioning is easy to use, there’s quite a bit going on behind the scenes, which can generate some questions:

  • What about copies of a document? Copies of a document, such as you would make using File > Duplicate, File > Save As, or in the Finder, are different files from the versioning perspective and lose access to the original file’s versions.
  • Is iCloud Drive supported? iCloud Drive maintains its own version database, so although you may have to click a Load Version link to see a particular version when browsing past versions, they should all be accessible.
  • Are files shared between my Macs versioned? Versions are stored at the top level of the document’s volume, so while it works with files stored on an external drive that moves between Macs, files shared between Macs over a network or using a file-sharing service like Dropbox will have different versions on each Mac, based on where the file was open when it was saved.
  • Are there any privacy or security risks to versioning? The version database is completely locked down and better protected than regular documents on your Mac. Also, if you open a confidential file but close it without making any changes or saving, it won’t be added to the version database.

No one expects to make mistakes, but if you do, macOS’s versioning may save you from having to re-create work. Look for that File > Revert To menu in your favorite apps to see if they support versioning, and if they do, give it a try so you’ll know how to use it if you ever need it.

(Featured image by Adam Engst)


Social Media: If you ever regret making a change too long ago to revert using Undo, try the versioning capabilities in many macOS apps that let you view, copy data from, and revert to previous versions of a document.

Similar Posts

  • _Dear Friends,_

    I tuned into the Apple special “Let Us Loop You In” event on my Apple TV. We will talk about the new hardware and software but there were a few things that caught my attention that really help to define Apple as a truly different company.

    The first was Apple’s environmental commitment. They now boast that 90% of their operations, worldwide, are powered by renewable energy and 100% in the USA. This is a unique accomplishment that is made even more remarkable by Apple’s size. While Small Dog Electronics is proud to power our Waitsfield headquarters and S. Burlington store by solar energy, we have not yet reached the point of powering all our operations which is something Apple has done both by purchasing renewable energy and installing large scale solar arrays at their locations both in the USA and China.

    Their environmental commitment goes further with an awareness of the impact their products have on the waste stream. They made a point to describe the materials used which have lower impact and talked about their recycling program, too. The robot, Liam, that disassembles iPhones into its component parts was very cool and is a further demonstration of Apple’s leadership in environmental stewardship.

    The other part of the announcement that caught my eye was the extension of Apple’s altruistic Research Kit tool that has helped researchers gather data on several chronic diseases. CareKit takes that a step further, offering tools that help patients and their medical providers manage those chronic diseases. They already have several new apps in development, including one that provides post-surgical care monitoring and another for diabetes monitoring. Research Kit and CareKit are both open-source software that do not necessarily provide any revenue stream for Apple but provides the tools to improve health. I am very proud of Apple for its initiatives in these areas.

    This week’s Kibbles & Bytes exclusive is a “**home and away USB charger bundle.**”:http://www.smalldog.com/wag900002185/home-and-away-usb-charger-bundle-one-for-the-car-one-for-home This features the Hammerhead 2-port USB Automotive charger and the Hammerhead 2-port wall charger. Both have sufficient power to charge both an iPhone and iPad. If you are like me, you can never have too many chargers and this bundle is a great way to get a spare for you home and car! Normally, this bundle is $34.98 but exclusively for Kibbles & Bytes readers this week, it is $10 off at “**$24.98!**”:http://www.smalldog.com/wag900002185/home-and-away-usb-charger-bundle-one-for-the-car-one-for-home

  • Do you use iCloud for Safari?

    With all the news surrounding the government’s attempt to force Apple to write software that doesn’t exist to crack an iPhone, iCloud has been in the news, too! Do you use iCloud? Apple has some huge server farms to support this amazing technology and I thought it would be good to do a brief review of some of the features as they relate to Safari.

    iCloud has sort of settled to the back of my mind because it just does its thing in the background and serves up features that I take for granted. But this week, I ran into a dilemma that puzzled me for some time. I noticed that I had accidentally deleted one of my folders in my Safari favorites bar. These were important bookmarks and I needed them back. Well, like a good boy, I have a Time Machine backup and quickly went back in time and restored my Safari bookmarks from a time before I had deleted them. Good stuff, but when I went to look the next morning, the folder was gone again. This happened a few times with me going back in time to get the .plist file. Then I figured it out – I had Safari active in iCloud so my bookmarks were being synced in the cloud. So, every time I restored it, it would eventually be overwritten by iCloud. The solution? Really sort of simple, I turned off Safari in iCloud preferences and turned it back on, problem solved.

    Activating Safari in iCloud gives you some great tools. You can start browsing on your iPad and pick up seamlessly from your Mac or you iPhone. It syncs your bookmarks and tabs and if you also use iCloud Keychain it will remember all those passwords for the websites you visit. If you use the reading list function of Safari it will also keep those current across your devices.

    As with the other features of iCloud, the features only work if you are signed on with the same Apple ID on all of your devices. It won’t know that you are signed onto one AppleID with your Mac and another with your iPhone. Most common issues with iCloud come down to this simple issue. Apple has not made it easy to merge Apple IDs so at least for iCloud you should be consistently using the same Apple ID. Open the iCloud System Preference on your Mac and choose Safari to activate iCloud on your Mac or go to the iCloud Setting on your iPhone or iPad to activate.

    You can also access the Safari tabs that you have open on your Mac on your iPhone or iPad. It is a bit different looking on the iPhone or iPad. Open Safari on your iPhone or iPad and then tap the tabs icon. You will see all of your open Safari windows but if you scroll down at the bottom will be all the tabs open on your Mac and you can click on any of those to make it active.