Xref: utzoo comp.sys.mac:31780 comp.sys.mac.hypercard:1947 Path: utzoo!attcan!uunet!husc6!ukma!rutgers!njin!princeton!phoenix!clye From: clye@phoenix.Princeton.EDU (Christopher Lye) Newsgroups: comp.sys.mac,comp.sys.mac.hypercard Subject: Hypercard Address Stack and Mail Merges Keywords: hypercard stacks mail merge writenow macwrite Message-ID: <8386@phoenix.Princeton.EDU> Date: 12 May 89 05:47:02 GMT Followup-To: poster Organization: Princeton University, NJ Lines: 32 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