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

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. /**
  5. @Tool: openFilePath~opens a quoted full file path selected in an editor. 
  6. To use select a quoted file path in an editor and run this script. Note a 
  7. quoted file path uses '\\' as the directory separator. 
  8. @See: insertFilePath@Tools Reference/Tools/Misc.html#insertFilePath 
  9. @EndTool: 
  10. @Summary: openFilePath~opens a quoted file path 
  11. */
  12.  
  13. var editor = getActiveEditor();
  14. if (editor)
  15. {
  16.   var selection = editor.getSelection();
  17.   var quotedPath = editor.copy(selection);
  18.   var file = newFile();
  19.   file.setPathFromQuotedPath(quotedPath);
  20.   file.open(true);
  21. }
  22.  
  23. !!/Script
  24.