clye@phoenix.Princeton.EDU (Christopher Lye) (05/12/89)
I just spent a good hour fiddling with both hypercard scripts and the mail merge functions on Writenow 2.0 and MacWrite II which both use similar format for their mail merges. I am using a script routine that I got out of the Complete Hypercard Book to WRITE the "name and address" field data to a text file. However, the way data is entered into the Address stack there is a hard return between NAME, STREET and STATE entries. Now when using the mail merge functions on the two programs I mentioned they call for a TAB between each of these variables/fields and a hard return between each entry/record. My question is that is there a script that will replace the hard returns between each field into tabs and place a hard return between each record. I am not a very experienced scripter so please excuse me if this is something quite trivial. An example would be: Hypercard Entry --> Apple Computer [return] 20525 Mariani Avenue [return] Cupertino, CA 95014[return] Mail merge data format --> Apple Computer[tab]20525 Mariani Avenue[tab] Cupertino, CA 95014 [return] Any help from veteran scripters is much appreciated. Please E-mail replies and I will post a summary of the replies. Thanks, Chris