Let’s set the scene: It’s Monday morning, and you’ve been working tirelessly all weekend, tweaking and putting finishing touches on a big Keynote presentation that you’ll be using at today’s board meeting. Now that it’s finished, you decide to run through it one last time, just to be safe. So you fire up Keynote, and your heart sinks as you stare unbelieving at the message above.
“WHAT?! I just opened it this morning! What do you mean it’s not valid?” You’re practically screaming at your computer now, and repeatedly trying to open the file to no avail. After taking a few moments to calm down and avoid tossing your Mac out the window, you suddenly remember the Versions feature in Lion that automatically saves versions of your file as you work. You jump into Finder, restore an older version, and… it doesn’t work. Keynote still tells you that the file is invalid. So you try another version, and another, but Keynote remains adamant that your attempts are futile, and now you begin to panic as the realization sets in that your presentation starts in 15 minutes and your work is gone.
But before you give in to despair, here is something you can try that just might work. It’s no secret that many “files” in OS X are really folders or other archives that themselves contain many more files. You can easily see this in action by right clicking on an Application or an archive in Finder and choosing the Show Package Contents… option. A Keynote presentation file is really no different — except that the menu option to show the contents doesn’t appear when you right click. The files are still there, it’s just that Finder doesn’t see the file as an archive, so it doesn’t let you see inside of it.
So, how do you get at these files, you might ask? It’s actually deceptively simple — but before we begin, I can not stress enough to you to make a backup copy of your file. Sure, it might be “invalid” and already broken, but you still should make sure you have an untouched copy somewhere should you need it. Once you’ve got a copy, continue on with the instructions below.
Step 1: Rename the file to a .zip file.
Now that you’ve made a copy, you need to locate your file in Finder, highlight it, and then press the Enter key to rename the file. If the file name ends with .key, change it to .zip. Otherwise, just add .zip to the end of the filename, and press Enter again. When Finder asks, tell it to Use .zip.
Step 2. Open the zip archive.
Your file should now be named something like Presentation.zip. Go ahead and double click on it, and Finder should decompress the .zip archive into a folder of the same name. If you open the folder, you should see a bunch of files there, including any images you’ve added to your presentation, similar to the screenshot below:
Step 3. Rename the folder back to a .key file
At this point, if everything has gone well, you should be feeling somewhat relived, as you can at least see that your work is not completely lost, just hidden. So, how do you get this back into Keynote, you might ask? No, you won’t have to redo everything.
Simply highlight the name of the folder, press Enter to rename it again, and add the .key extension to the end:
Step 4. Cross your fingers and open the file with Keynote
Here’s where you have to cross your fingers and hope for the best. If all went well, you should be able to just double click on the file and Keynote should fire up with your presentation, in all of its glory.
If it doesn’t work, go back and double check that you didn’t miss anything above. If you’ve checked and it’s still not working, then sadly, there’s a good chance that something really is wrong with the presentation. If this is the case, hopefully you still might be able to salvage some of your work out of the file by digging through the folder you get in step 2.
If it did work, congratulations! Now you can relax… after you go give your presentation, of course.
Invalid Keynote document? Calm down and try this fix originally appeared on TUAW – The Unofficial Apple Weblog on Tue, 07 Aug 2012 09:00:00 EST. Please see our terms for use of feeds.