home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Misc / lowerCase.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  659 b   |  27 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3. // @Modified build 316 wh19990728
  4.  
  5. /**
  6. @Tool: lowerCase~converts the characters in a selection to lower case. 
  7. @See: upperCase@Tools Reference/Tools/Misc.html#upperCase 
  8. @EndTool: 
  9. @Summary: lowerCase~converts selection to lower case 
  10. */
  11.  
  12. function DoCommand()
  13. {
  14.   var editor = getActiveEditor();
  15.   if (editor)
  16.   {
  17.     var selection = editor.getSelection();
  18.     var text = editor.copy(selection);
  19.     var upper = text.toLowerCase();
  20.     editor.replace(upper, selection);
  21.     editor.select(selection); //wh19990728
  22.     editor.setActive("Convert to Lower Case");
  23.   }
  24. }
  25.  
  26. !!/Script
  27.