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

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. /**
  5. @Tool: getPathInfo~displays the full path for the current editor. 
  6. @EndTool: 
  7. @Summary: getPathInfo~displays the full path for the current editor
  8. */
  9.  
  10. var editor = getActiveEditor();
  11. if (editor)
  12. {
  13.   var file = editor.getFile();
  14.   alert ("The path of the current editor is:\n" + file.path);
  15. }
  16.  
  17. !!/Script
  18.