Short: Save/print Thor msgs with/without headers Author: roy@ebrown.demon.co.uk (Roy E Brown) Uploader: Author Version: 1.3 Type: comm/thor This script will allow the user to save or print the currently displayed message - or save multiple messages to disk. The user is given the choice whether to include the headers or not, and if the file already exists on disk, whether to overwrite or append. The default filename for a single message is taken from the message subject. Any '/', ':' & ' ' characters are converted to '-', ';' & '_' respectively. The default filename for multiple messages is taken from the Conference name with '.msgs' added as a suffix, i.e. 'ALT.SYS.AMIGA.THOR.msgs'. Of course, in both cases, the user can set the filename to whatever he or she desires. To save multiple messages, use shift-click in the message list window to select the required messages. If the message list window is not open, the user will be prompted to open it before running the script again. For printing, the current message is first saved to the file 'T:Temp.msg' and then copied to the PRT: device. This script will only work from within Thor. Any comments or suggestions, please email me. Thanks History V1.3 The save directory now defaults to the Save Dir, as set in Thor's (15.2.97) Global Paths (thanks to Paul Gooch for the suggestion). Each message in a 'multiple message save' has a divider showing the message number, the conference and message creation date. General tidy up of the code V1.2 Added support for saving multiple messages to disk. (13.2.97) V1.1.1 BUGFIX: SaveMsg now also converts '/' to '-' in the filename. (10.2.97) Changed printer output to PRT: device instead of PAR: device. V1.1 Added the capability to print individual messages, with or without (9.2.97) headers. The script will now find the path to Thor (using ENV:THOR/ThorPath), rather than use the assign 'Thor:', which may or may not exist on all systems. V1.0 Initial release. (8.2.97) Cheers, -- *Roy E Brown* | A4000 | 22Mb RAM | MFC III | Thor 2.4 #1530 | Doncaster | CyberStorm II | 540Mb HD | ZIP 100 | Miami 2.0f | England | 68040/40MHz | 2x CDROM | USR V34+ | Team AMIGA | UK | http://www.ebrown.demon.co.uk | -- Been there, done that, got mugged. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 2120 1042 50.8% 15-Feb-97 12:39:02 SaveMsg.readme 6109 2189 64.1% 15-Feb-97 12:34:12 SaveMsg.thor -------- ------- ----- --------- -------- 8229 3231 60.7% 20-Feb-97 11:21:30 2 files