name insert01 group "&Learning"; on command "&Signature" file = qedit.activefile; -- we need an object to insert into file.insert("Ralph J. Smith"); endon << Author: bgreen@robelle.com Date: Nov 5, 1999 Comments: 1. We will add Signature to the menu because it has an On Command block. 2. Save as '\c:\qslwork.sig.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 'insert01' and then 'Signature'. 6. You should see 'Ralph J. Smith' appear in your text window at the cursor position. 7. &S defines 'S' as the menu shortcut key for 'Signature'. 8. If you do Alt-S R to run this script, nothing happens. Why? Because there is not main line -- only On Command blocks that must be invoked from the Script menu. 9. What happens if you don't have a file open? You get an Error message box: "Line 5 - this operation requires an object". Translation: "You must have a file open to do an Insert(). See insert02.qsl script for detecting this error. 10. How to insert a multi-line signature? See insert02.qsl script >>