Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Classic Macs and Mac OS > AW 5 Applescript Converter

AW 5 Applescript Converter
Thread Tools
angevine41
Junior Member
Join Date: Sep 1999
Location: Chico, CA
Status: Offline
Reply With Quote
Mar 26, 2000, 09:11 AM
 
AW 5 has a script which it says will convert previous CW files to AW 5, and that the script is alterable so that it will not only convert but trash the original file. And, I believe, that you can drop whole folders in to be done.

But how? Maybe I haven't spent enough time studying it, but appescript is quite confusing to me.

     
Michelle Steiner
Fresh-Faced Recruit
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 27, 2000, 03:30 PM
 
This sounds very much like the script I wrote for MacWrite Pro that converted MacWrite II files to MWP files. If you can send me a copy of the script <[email protected]>, I'll look at it to see if it's based on mine. They have a perfect right to use it, though; I worked at Claris at the time, and the script shipped on the MacWrite Pro installer disk set.

--Michelle
     
Michelle Steiner
Fresh-Faced Recruit
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 27, 2000, 03:32 PM
 
The editor-software seemed to have stripped my email address from my previous message.

michelle at michelle dot org
     
Michelle Steiner
Fresh-Faced Recruit
Join Date: Nov 1999
Status: Offline
Reply With Quote
Mar 27, 2000, 04:39 PM
 
Thanks for sending it Jim; yes, it's my script. When they modified it for Clarisworks, they removed all credit to me, though, and show only the credit for the person who modified it.

The modifications, BTW, consisted of changing references from "MacWrite Pro" to "ClarisWorks" and removing the logging feature (the original generated a log showing every file processed, and whether the translation succeeded); they even left my original comments in place, sort of. For some reason, the comments and the names of the routines are from the print-a-document script, but the code itself is from the translation script.

The script merely runs the application, opens the document, and saves it, appending ".mwp" for the original version or "cwk" for the ClarisWorks version. If the length of the file name exceeds 27 characters, it uses only the first 27 before appending the suffix. It's smart enough to navigate through nested folders and to recognize certain file types to pass over (applications, control panels, hypercard stacks, etc.). It will translate any word processing or text document that CW or AW can open.

--Michelle
     
angevine41  (op)
Junior Member
Join Date: Sep 1999
Location: Chico, CA
Status: Offline
Reply With Quote
Mar 27, 2000, 11:01 PM
 
Michelle,
You said in an email to remove the comments around trash to enable the script to trash the old file. Could you tell me, exactly, what?

And why, several times, does the script talk about printing?

close document 1 saving yes saving in file (NewName & ".cwk")
(*tell application "Finder"
move file MyName to trash
end tell*)
end tell
on error errorMsg number errorNum --error handling that doesn't do anything. Keeps script from crashing though
end try
end if
(*tell application "Finder"
empty trash
end tell*)
end printTheDocument

Hmmmm...this pasted-in version doesn't look ANYTHING like the original.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:34 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,