Thanks Michelle, the script now works beautifully. But 2 (small) problems:
1) No matter how the the messages are ordered in the folder (by date, Subject, etc.), they are exported counter-chronologically: the mail of 1/1/2002 is always at the bottom of the the new list. (I want it to be chronological, 1/1/2002 first) 2) When the AppleWorks is launched by the script, the application's (horizontal) Button Bar is always placed half an inch bellow the top of the desktop, and this causes the top of the new window to be hidden under the button bar. (This does not happen when the AppleWorks is launched independently). Any suggestion ? With many thanks, Asaad. ======================================= On 9/12/02 20:03 Michelle Steiner Wrote: >It appears to me that the problem is that the script has "Clarisworks" >hard coded in an error-checking line, but now that you're using >Appleworks, the error returns "Appleworks" instead. > >To fix the problem, change this line: > >if theErrorMessage is "ClarisWorks got an error: Can't get document >kind of document 1. Invalid index." then > >To these two lines: > >set the AppName to its name >if theErrorMessage is AppName & " got an error: Can't get document kind >of document 1. Invalid index." then > >This change will take care of any further changes in the application's >name, assuming that Apple does its part correctly if they change the >name of the application. > >--Michelle > >On Thursday, September 12, 2002, at 01:24 AM, M. A. Nezami wrote: > >> Sorry Michelle, here it is with all relevant info: >> >> (1) Script Namme: Export - Move to CW >> >> (2) The error message: "The script did not expect this error: >> AppleWorks >> got an error: can't get document kind of document 1. Invalid Index." >We're not human beings having a spiritual experience. >We're spiritual beings having a human experience. > >___________________________________________________________________________ >To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to ><[EMAIL PROTECTED]> or <[EMAIL PROTECTED]> > ___________________________________________________________________________ To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>

