Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to do some work on a document.xml file. I created a Word document which gave me the .docx file. I added the .zip extension and when I unarchived it, it become the document folder. In the document.xml, I could find the specific test that I was interested in ediging. I made some changes, closed file. I then archived and removed the .zip extension. Apple Pages wanted to open but both times, I got 'An unkown error occured' as output. Am I doing something wrong or is there some say to rectify?

thx

share|improve this question
    
Works just fine for me, both in Office 2011 and Pages '09. Which changes have you made, exactly? What are you creating the Word document with? –  slhck Apr 17 '12 at 19:30
    
Did you try unzipping / rezipping without doing any changes? What archive-program do you use for zipping. I know windows built-in zip works... –  Mattias Åslund Apr 17 '12 at 20:17
    
Hmm... I am using a mac and just using the default compression utility on it. Right-click -> 'compress' –  timpone Apr 17 '12 at 22:31
add comment

1 Answer

This stackoverflow answer might do the trick if you happen to be opening this file up on a mac or linux machine.

The key is making the 'root' of the zip file the folder you unzipped.

From the command line, change directory into the unzipped folder.

cd ./unzippped

Then

zip -r ../rezipped.docx *

to zip it back up.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.