Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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-OTHER, Mac OS 9.0.x

Posted on Apr 5, 2013 8:14 AM

Reply
6 replies

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 opendroppedItems


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

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

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.