name insert02 group "&Learning"; on command "&Signature" file = qedit.activefile; -- we need an object to insert into result=dialog(string(file)); -- debugging display if not exists(file) result = dialog("You need a file open to insert a signature"); else sig = {"Ralph J. Smith", "Email: smithr@ourfriendlyfirm.com", "Telephone: 345-678-9012"}; -- create a list of 3 strings result = dialog(string(sig)); file.insert(sig); -- insert the list, create 3 lines endif endon << Author: bgreen@robelle.com Date: Nov 5, 1999 Web: insert02.qsl Comments: 1. You will run this script from the Script Menu. 2. Save as '\c:\qslwork.insert02.qsl". 3. Click Menu | Manage Scripts, then click 'Add' and browse to your qsl file. Click OK to add it. The script should now be on your menu under the "Learning" group. 4. Look in Script Menu and click 'Learning'. 5. Click 'insert02' and 'Signature'. 6. You should see a 3-line signature appear in your text window at the cursor position. 7. 'if typeof()' is a fast way to check if there is an active file. 8. 'if not exists(file)'is a slower way to check the same thing. 9. Curly braces enclose a list. To insert multiple-lines of text you create a list of multiple strings enclosed in braces. 10. 'result = dialog(string(sig));' is a debugging display; remove it before putting the script into production use. >>