donumregis

Q: batch conversion from .cwk to .rtf for Microsoft Word use

Do you know how to change the extension from .cwk to .rtf for a whole folder of appleworks 6 documents?  I can "save as" rtf for each document one at a time.  But I would like to convert a whole folder of 300 documents with less work on my part.   Thanks!

appleworks, Mac OS 9.0.x

Posted on Apr 5, 2013 8:14 AM

Close

Q: batch conversion from .cwk to .rtf for Microsoft Word use

  • All replies
  • Helpful answers

  • by Peggy,

    Peggy Peggy Apr 5, 2013 8:02 PM in response to donumregis
    Level 8 (38,947 points)
    Applications
    Apr 5, 2013 8:02 PM in response to donumregis

    Yvan Koenig wrote a lot of AppleScripts for AppleWorks but it doesn't appear that he moved them to his Box.com account with the demise of iDisk. I will e-mail him & ask if he has one or can write one. I'll post back after I hear from him.

     

    Peggy_sig.png

  • by pjdube,

    pjdube pjdube Apr 5, 2013 8:13 PM in response to donumregis
    Level 3 (830 points)
    Apr 5, 2013 8:13 PM in response to donumregis

    Here it is. You can get it from MacScripter:

     

     

    on run

      doyourduty(choose file with multiple selections allowed)

    end run

     

    on open droppedItems

      doyourduty(droppedItems)

    end open

     

    on doyourduty(theItems)

              repeat with anItem in theItems

                        tell application "Finder"

                                  set {name:fileName, name extension:nameExtension, class:itemClass, container:parentFolder} to item (anItem as text)

                                  set isFolder to itemClass is folder

                        end tell

                        if isFolder then

                                  tell application "Finder" to set itemList to items of anItem

      doyourduty(itemList)

                        else

                                  if nameExtension is "cwk" then

                                            tell application "Pages"

                                                      open (anItem as alias)

      -- Save file to folder that dropped file exists in.

                                                      set docPathAndName to (parentFolder as text) & text 1 thru -4 of fileName & "pages"

                                                      save front document in docPathAndName

      close front document

                                            end tell

                                  end if

                        end if

              end repeat

    end doyourduty

  • by Peggy,

    Peggy Peggy Apr 5, 2013 8:51 PM in response to pjdube
    Level 8 (38,947 points)
    Applications
    Apr 5, 2013 8:51 PM in response to pjdube

    The OP is using AppleWorks on OS 9, not Pages which requires OS X.

     

    If I find time tomorrow, I'll see if I can find an old script or modify one of Yvan's to do the job.

     

    Peggy_sig.png

  • by Peggy,

    Peggy Peggy Apr 6, 2013 10:13 AM in response to donumregis
    Level 8 (38,947 points)
    Applications
    Apr 6, 2013 10:13 AM in response to donumregis

    Yvan sent me two AppleScripts that should work for you. I put them in the AppleWorks folder on my Box.com account. If you have any questions, please post back.

     

    Peggy_sig.png

  • by donumregis,

    donumregis donumregis Apr 13, 2013 10:04 AM in response to Peggy
    Level 1 (0 points)
    Apr 13, 2013 10:04 AM in response to Peggy

    Dear Peggy, Thank you so much for your help.  I have been away from the computer and won't be back at my father's computer to use the AppleScripts in your box until late this May.   I will let you know how it works then.  Thanks again!

    Brian

  • by Peggy,

    Peggy Peggy Apr 13, 2013 10:42 AM in response to donumregis
    Level 8 (38,947 points)
    Applications
    Apr 13, 2013 10:42 AM in response to donumregis

    Yvan has now uploaded all of his AppleWorks scripts to his box account here. There are so many it runs to two pages. One on the second page to determine what kink of Apple document a file is would be very useful to many users.

     

    Peggy_sig.png