AppleScript to save AppleWorks as Word .doc documents

I'd like to start converting all my legacy .cwk documents into .doc files for reasons I'm sure everyone understands.
I wonder if anyone has already created an AppleScript to do this?
I have found on script for converting .cwk to .rtf - I wonder how I can modify that to save as .doc? See http://dmgsoftware.com/applescript/index.html
Thanks!

Hello
Here is an enhanced version. Read the comments first
Copy paste in the Script Editor
Save as an application (or an application bundle)
Store it in:
<bootVolume>:Users:<yourAccount>:Library:Scripts:Applications:Pages:
Maybe you will have to create the folder "Pages" or even the folder "Applications"
After that, when Pages is running, the script will be available in the System's Scripts menu.
Clicking the item "pages2Doc" will save the front document as a doc file
in the folder containing the original pages document.
If the document was never saved, according to current date_time it will be saved
as #YYYYMMDDThhmm.pages and #YYYYMMDDThhmm.doc in the default save folder.
If you change the property withSeconds from false to true,
the fileNames will be #YYYYMMDDThhmmss.pages and #YYYYMMDDThhmmss.doc
--(SCRIPT pages2Doc.app]
property theApp : "Pages"
property types : {{"doc", "SLDocumentTypeMSWord"}, {"pdf", "SLDocumentTypePDF"}, {"txt", "SLDocumentTypePlainText"}, {"rtf", "SLDocumentTypeRichText"}, {"rtfd", "SLDocumentTypeRichTextBundle"}}
property withSeconds : false
set {newExt, newType} to item 1 of types (*
item 1 = doc
item 2 = pdf
item 3 = txt
item 4 = rtf
item 5 = rtfd *)
tell application "Pages"
set theName to name of document 1
set thePath to path of document 1
end tell -- Pages
try
(* Pages returns UNIX pathnames *)
set thePath to POSIX file thePath
tell application "Finder" to set theCont to container of thePath as Unicode text
set newName to (text 1 thru -6 of theName) & newExt (* Replace the "pages" extension by the newExt one *)
on error (*
the doc was never saved *)
set unique to my serialize() (* build a unique name *)
set theCont to my getDefaultSave() (* grab the DefaultSave folder *)
tell application "Pages" to save front document in (theCont & unique & ".pages") (* save once as Pages document *)
set newName to unique & "." & newExt (* prepare for save as newType document *)
end try
set newPath to theCont & newName
(* CAUTION, When saving, Pages doesn't take care of an existing document.
It replaces it by the new one. *)
tell application "Pages" to save front document as newType in newPath (* save as newType document *)
-- =============
on getPlistValue(valName, default)
local thePlist, u
set thePlist to (path to preferences folder as Unicode text) & "com.apple.iWork." & theApp & ".plist"
tell application "System Events"
if exists file thePlist then
tell contents of property list file thePlist
try
set u to (value of property list item valName) (* Unicode Text *)
on error (*
On est là si Numbers n'a rien enregistré avec des préférences neuves
• Here if Numbers never saved with the new preferences file. *)
set u to default
end try
end tell -- to contents of…
else (*
On est là s'il n'y a pas de fichier de préférences
• Here if there is no preferences file. *)
set u to default
end if
end tell -- to system events
return u
end getPlistValue
-- =============
on getDefaultSave()
local thePlist, u
set u to my getPlistValue("LSDocumentDefaultSaveDirectory", "~/Documents")
if u = "~/Documents" then
set u to path to documents folder
else if u = "~/Desktop" then
set u to path to desktop
else
set u to ((POSIX file u) as Unicode text) & ":" (* indispensable *)
end if
return u as Unicode text
end getDefaultSave
-- =============
on serialize()
local cd, serial
set cd to current date
set serial to (year of cd as text) & text -2 thru -1 of ("0" & (month of cd as number)) & text -2 thru -1 of ("0" & day of cd) & "T" & text -2 thru -1 of ("0" & hours of cd) & text -2 thru -1 of ("0" & minutes of cd)
if withSeconds then
return "#" & serial & text -2 thru -1 of ("0" & seconds of cd)
else
return "#" & serial
end if
end serialize
-- =============
--[/SCRIPT]
I'm waiting for your comments before installing it on my iDisk.
Yvan KOENIG (from FRANCE samedi 9 février 2008 21:00:00)

Similar Messages

  • Convert MS Word (.doc) document to pdf document

    Hi All,
    My requirement is that I need to convert MS Word (.doc) document to pdf document.
    Is there any standard SAP function module.
    Pls guide me.
    Rishi

    I dont understand why you want to use SAP to convert word file to PDF file.
    1. Search in google
    2. www.win2pdf.com - this may be useful
    Still if you want to use SAP to do that then follow the below procedure.
       1. Upload the data from word to internal table using the function module : GUI_UPLOAD.
       2. Use spool :
                  1) RSPO_OPEN_SPOOLREQUEST - Open spool request
                  2) RSPO_WRITE_SPOOLREQUEST - Write to spool request
                  3) RSPO_CLOSE_SPOOLREQUEST - Close spool request
       3. use the function module CONVERT_ABAPSPOOLJOB_2_PDF to convert spool in to PDF format.
    Regards,
    ~Satya

  • How to delete an old locked appleworks (.cwk) word processing document?

    How to delete an old locked appleworks (.cwk) word processing document? This is merely a startup file to make AppleWorks come up with text formatting etc all set to desired styles. AppleWorks doesn't work in Mavericks. I cannot find how to use Get Info to unlock this file so that it may be shoved to the trash.

    Eustace,
    1. Yes, the screenshot did not survive the trip into the text entry box after I hit send or whatever. Maybe I should upload it to my Flickr account and give it its own set and then insert the URL for that set here.
    Thanks for the link. I've never used Terminal before so I tried out your link twice. I was able to follow the directions but I did not see an icon for the created file appear on my desktop. Then I added two screenshots to my desktop and those did not appear either. So, I restarted and both the file names that I'd created with terminal and the screen shots appeared on the desktop. Then I tried to use Terminal to make the added file disappear and it would not. However, I was able to select the created filenames and the screen shots and dump them all in the trash and empty the trash.
    This morning I tried the method to create a file on the desktop a third time and it still does not appear on the desktop. What is the command for showing a listing of all the files in a directory? Suppose I wanted a listing of all the files on my desktop. I probably should be looking on the internet for a tutorial on using Terminal.
    I understand your suggestion that I can use Terminal to delete the unwanted locked files but my computer is not acting quite the way the tutorial in your link suggests.
    Thanks for the idea. It tells me I need to learn a bit about using Terminal.

  • How do I set Pages to automatically open all Word (.doc) documents?

    Being a relatively new Mac User, I haven't yet figured out how to associate programs with particular file types.
    How do I set Pages to automatically open all Word (.doc) documents?
    Thanks.

    Hello Argelius
    If you select a word file in the Finder and do File>Get Info you will see a section in there where you can specify which application should be used to open files of that type.

  • Printing to PDF using Chrome, and then save as a Word doc.

    I want to print a webpage using Chrome to PDF, and then save that PDF to a Word document.
    The problem is occurring when saving the PDF to a Word doc, as the Word document is blank.
    Im using Adobe Acrobat X, Chrome version 32.0.1700.107 m.
    (This question may seem a little strange/pointless, however current workflows within my workplace requires documents to be saved from online as PDFs, sent as PDFs, and staff then either save as PDFs or some convert the files to word documents as necessary)
    I can already do this using Firefox, but saving to PDF using Chrome is significantly faster.

    I'm sure you're aware that here you have an Acrobat user-2-user forum. Note a generic Q&A forum for non-Adobe products that, coincidentally, can create PDF.
    The quality of Export from Acrobat or Adobe's online subscription services very much depends upon the "inner quality" of how the PDF was created.
    GIGO is very much operative.
    Good In Good Out -- Garbage In Garbage Out. Sounds like you have the later.
    Regardless what is making the PDF is not Acrobat. Consequently "process support" would be with the software house that is responsible for the process.
    Be well...

  • User is having a save issue with Word 2007 documents created from a template.

    I have 1 particular user, out of approx. 30, that is experiencing an intermittent problem when trying to save a Word 2007 document to a network drive.  The particular error is
    "Word cannot complete the save due to a file permission error. (xxx.docx)"  CTRL-SHIFT-I Error Code is: 701743
    This only happens while he is working in a document created from a template (.dotm) file I made a few months ago.  The problem has never occurred with any other Word docs or Excel, or any of the other users accessing the template to create documents. He
    also gets an error message stating
    "xxx.docx cannot be found.  Check your spelling, or try a different path."  CTRL-SHIFT-I Error Code is: 200635
    But this only occurs when trying to "Save As"  The odd thing is that if he renames the file to something like xxx1.docx, it will allow him to save on the network folder with no issues.  And as mentioned, this is intermittent - he may go weeks without
    seeing the message while doing nothing different.
    I have tried search for similar issues in the forums but they don't seem to match exactly what is happening to us.  Our 3-man IT department seems to be at a loss and I have had good luck solving other issues in this forum so I thought I would give it
    a try.
    Any ideas would be appreciated.
    Thanks,
    Adam

    Hi,
    It's seems temporary internet folder corrupted, please try to modify the location for temporary Internet files for Internet Explorer test this issue:
     1.In Internet Explorer, choose Internet Options from the Tools menu to display the Internet Options dialog.
     2.In the Internet Options dialog, click the General tab. In the Browsing history section click Settings to open the Temporary Internet Files and History Settings dialog.
     3.In the Temporary Internet Files and History Settings dialog, click Move Folder to open the Browse for Folder dialog.
     4.In the Browse for Folder dialog, select the following location.
    C:\Users\<user name>\AppData\Local\Microsoft\Windows\Temporary Internet Files
    5.Click OK to close the Browse for Folder dialog. Click OK to close the Temporary Internet Files and History Settings dialog. Click OK to close the Internet Options dialog.
    6.Reboot the computer.
    More detailed information you can refer to below link:
    http://blogs.technet.com/b/ryan_christiansen/archive/2008/04/28/word-2007-file-save-errors-an-error-is-displayed-when-attempting-to-save-a-word-document.aspx
    If this problem still persists, please refer to this article troubleshooting problems:
    http://support.microsoft.com/kb/921541
    Best regards.
    William Zhou
    TechNet Community Support

  • PDF to Word(.doc) document not convert correctly

    Hi
    I'm trying to convert a pdf file into a word document but i'm unable to do it. the reason is i want to fill in an income tax form which is in a pdf format and i can't add any details in the file...
    How do i convert this file into a word doc file, someone can help plz,,,step by step as i'm not really an expert in this field..
    Regards

    If you have adobe X, simply go to "File" -> "Save-As" and Microsoft Word is an option. Also, there is a download (paid) called Able2Extract that will allow you to convert pdfs to word, excel, etc. but the formatting is often lost. If you get the premium package, you can even convert scanned documents. I've used Adobe X to do the conversion, and it retains headers, footers and all formatting.
    And i personally share you with a article about how to converting PDF files to Word(.doc), you just need to follow the easy guide.
    Hope it can help you a lot.

  • How do I save formatting from Word docs to pages?

    Hi
    Often when I open a word document in Pages I get a document warning pop up box.  Often I find that basic things from the Word doc have been changed.  For example, things that were in Bold text in the Word doc are no longer in Bold in the Pages file.  How do I prevent this from happening as the document moves back and forth between myself ( a Pages user) and a clien (who has Word)?

    Hello
    As far as I know, Word create faux-style when a bold or an italic version of a font isn't available.
    In such case, bold or italic will be dropped in Pages.
    From my point of view it's a good choice but it may hurt some users.
    Yvan KOENIG (VALLAURIS, France) lundi 13 juin 2011 16:18:30
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • Save as Microsoft Word doc not using initial OCR process

    I used Acrobat X's OCR feature wich seems to work quite well... It does all the normal stuff like giving you the option to fix up and suspect conversion issues. After correcting any suspects I then went to save the file as a document that I could then forward to sombody to edit... Say Microsoft Word.
    When I went File->Save->Microsft Word->Word Document and selected the location, I could see in the little status bar down the bottom that Acrobat X went through what looked like another OCR process. And sure enough when I opened up the file the Word document contained all the un-fixed suspects in it.
    Can anybody else confirm this behaviour, tell me if I am missing something or tell me a possible work around?

    Please note that this is a known limitation with the current version of Acrobat (Acrobat X). We might fix this issue in our future releases.

  • SAve as a Word / PDF document

    Hi,
    I have a JSP web application. This application has several user forms to be filled in by the user. The forms are developed using JSP and Java codes. Right now, I am able to print the forms through the application. I would need to save these forms as a word document or a PDF document. Can anyone suggest me how do I go about incorporating this feature in my applicaion.
    Thanks in advance for the help!
    Anu

    If you haven't already, download Cocoon and set it up, then take a look at the examples. That should give you some ideas. I think there may be a forum or mail list for Cocoon implementors.

  • Adobe Acrobat Pro 9 Crashes when trying to save pdf as Word doc.

    It starts to save the document and says page pass 1 of 5 for example then says adobe acrobat has stopped working.  How do I fix this problem?

    Found this in answer to a similar issue regarding crash on print. And my issue has been resolved ...
    To avoid this crash  try this workaround.
    remove adobe PDF PPD from the following folders:
    OS/Library/Printers/PPDs/contents/Resources/en.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Zh_CN.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Ja.lproj,
    OS/Library/Printers/PPDs/contents/Resources/ko.lproj,
    OS/Library/Printers/PPDs/contents/Resources/Zh_TW.lproj,
    Mitch

  • How do I convert a PDF to word... Just acquired the service, but cannot "save as " as word doc...

    How do I convert a pdf file to word.  I tried the "save as" option, but it does not work...What should I do?

    Hi hazel122,
    To convert PDF to Word click on 'Select PDF File To Export' -> 'Choose Files From My Computer'
    Select the desire file you want to convert then select the file format to Word from the drop down list of 'Export Format'.
    Click on 'Export To Word'.
    Regards,
    Florence

  • Corrupted word doc - document.xml corrupted

    Word document containing full semester uni work of my friend. She had NO backups and file was kept on USB key (hard to believe but true).
    I tried renaming as .zip and extracting the document.xml - no luck. 
    tried hex editor to see if I could see any text  - nothing. 
    I'm not interested in recovering the images in the file (got those ok). Just need the text if possible. (or point me to tools which might work?)
    Thank you very much.

    It had a PK zip signature at the beginning of the file which is why I tried 7-zip.  I looked at another 'docx' file and it did too.  I didn't realize that 'docx' files were also zipped.
    I had the same problem with 'document.xml' but the other 'xml' files seemed to open fine.  I couldn't extract or view 'document.xml'.
    Try to look at the answer here:
    http://www.filerepairforum.com/forum/microsoft/microsoft-aa/word/919-office-documents-randomly-corrupting-possible-malware-issue
    Or:
    Word Repair Kit
    An advanced Microsoft Word repair tool from Repair Kit that has been designed from ground up to match the skills and needs of the most inexperienced users looking to find out how to repair Word document data on their own. The program offers a sleek interface
    and full support of all Word document formats.
    For more information: http://www.word.repair/

  • Word processing software:  Appleworks, NeoOffice / saving as Word.doc

    I would love some advice on word processing software.
    My daughter is a college student who sometimes needs to e-mail her papers to a teacher (in Word). She does not have Word, and we're not buying it. In the past, she's used the school computers, but that's not always practical. She has a Mac, with Appleworks on it. If she works in Appleworks and saves a paper in Word format, will it really open okay in Word, with footnotes, images, etc. intact? (Obviously, she doesn't want to get a lower grade for something so silly and avoidable.) I think I have seen on this forum somewhere a mention of trouble with footworks in Appleworks docs saved in Word format.
    Also, if she were to save as a Word doc, which format would be the best to use: Word Mac 6; Word Mac 98; Word Windows 6; Word Windows 97, 2000, XP 2002?
    She also needs to do simple tables sometimes, which it looks like Appleworks can do. Do these translate well?
    Also, I have looked at NeoOffice and OpenOffice online. It looks like one of those would be a possibility for her, too. Apparently, documents can be saved as Word files in those programs. Does anyone know if they are any better than Appleworks for this purpose? (For instance, with footnotes?)
    From the NeoOffice Website: "You can exchange documents with Microsoft Office and OpenOffice.org users, even on other platforms!" Does that mean a Word file will open and display okay, if you get one e-mailed to you? And that your own Word file will open and display okay on the other end? (I know this is not about Appleworks, but someone might know. . .)
    Looking through this forum, I have seen software for opening Word documents (icWord), but my daughter needs to be able to (reliably) go both ways--saving and opening.
    Thanks much in advance!
    Christina
    Powerbook G4; Intel iMac 20inch Core Duo   Mac OS X (10.4.5)  

    Overall, I'd concur with Ken.
    AppleWorks/Word conversion does have difficulties with tables and footnotes.
    Neo Office has better compatibility with MS Office, and runs without installing additional software on your Mac. But it's a Java implementation of an earlier version of OpenOffice.org, and is missing a few recent improvements. It's also a bit slow, although in some uses this is not a problem.
    OpenOffice.org runs in an Xwindow (no relation to MS Windows), and requires installation of X11, Apple's Xwindow implementation. I haven't used it, but expect that it is a more compatible implementation than NeoOffice.
    Both are free to download and use. If nothing else, one or the other is useful to see how successful the AppleWorks > Word translation of a particular file has been.
    The closest compatibility will be achieved with MS Windows (Mac), of course. If your reasons for not purchasing MS Windows are strictly economic, you mmight want to rethink them. As a student, your daughter is elegible to purchase the Teacher and Student edition at a much lower price than the retail version. This version is operationally identical to the retail one. The largest difference is a licencing one—student/teacher licencees are not eligible for reduced price upgrades to the next version. They are, though, eligible to purchase the next Student & Teacher edition provided they still qualify at that time.
    Regards,
    Barry

  • Excel document is automatically converting to a word doc and won't open

    I Installed Microsoft Excel and Word 2007 onto my laptop. Since the, whenever I create an excel document and save the same, it saves as a Word doc and when trying to open the doc, an error message comes up. Why is the Excel doc automatically saving as a Word doc? How to correct this issue?

    Hi judyf73891847,
    I don't think you're doing anything wrong. I'm not surprised that ExportPDF is having a hard time converting handwriting. One option is to disable OCR as described in this document: How to disable Optical Character Recognition (O... | Adobe Community. Then, ExportPDF won't try to convert those elements into editable text. The only drawback to that is that you won't be able to edit those items when you open the converted document in Word.
    Best,
    Sara

Maybe you are looking for

  • Error 401 while trying to connect SSRS via BIDS Report Designer to PowerPivot workbook hosted in SharePoint 2013

    I am having trouble connecting from BIDS 2012 to a PowerPivot workbook hosted in SharePoint 2013. I'm following this guide: http://technet.microsoft.com/en-us/library/gg413489.aspx but run into authentication problems (Error 401, access denied). I sa

  • Best way to type in forms

    I work a lot more with Acrobat and I am still learning but it really is a great program. I am aware that Reader is just for reading documents but I am curious as to how most of you fill out forms that you download in pdf format. Optimally, I would li

  • My ringer changes to vibrate when I put it in the holister

    I have a Blackberry 8520 and my profile ringer changes to vibrate when I put in in the holister.....can anyone help me change it so it doesnt do that anymore?

  • N80 white screen at sliding

    Yesterday after updating my phone with the last software a problem had been occured, Each time i open my keyboard (Sliding it), A white screen appears and I see nothing so I cant write sms or check my contacts or anything else while opening the keybo

  • Drop zone inquiry

    I used drop zone 1 and drop zone 2 for two presentations in iDVD. What settings or what do I do to make the zone 1 play and then go immediatly into the zone 2 presentation?