home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / ONPRESTARTUPPYTHONFILES.SCRIPT < prev    next >
Encoding:
Text File  |  2001-01-16  |  691 b   |  29 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3. // @Modified build 239 cm19981208 - added document comment
  4.  
  5. /**
  6. @Notify: onPrestartupPythonFiles~adds support py (Python) file types. 
  7. @EndTool:
  8. @Summary: onPrestartupHtmFiles~adds support Python file types
  9. */
  10.  
  11. function OnNotify()
  12. {
  13.     var output = getOutput();
  14.     var logEvents = getGlobal("LogEvents", false);
  15.     if (logEvents)
  16.     {
  17.         output.writeLine("Running onPreStartupPythonFiles");
  18.     }
  19.     
  20.     var documentTemplate = Application.createDocumentType("Python file", "", 
  21.         "python (*.py)", ".py", "", "python");
  22.     
  23.     documentTemplate.specialKeywordCharacters = "+";
  24.     documentTemplate.setEOLComment('#');
  25. }
  26.  
  27. !!/Script
  28.  
  29.