home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- /**
- @Tool: openFilePath~opens a quoted full file path selected in an editor.
- To use select a quoted file path in an editor and run this script. Note a
- quoted file path uses '\\' as the directory separator.
- @See: insertFilePath@Tools Reference/Tools/Misc.html#insertFilePath
- @EndTool:
- @Summary: openFilePath~opens a quoted file path
- */
-
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- var quotedPath = editor.copy(selection);
- var file = newFile();
- file.setPathFromQuotedPath(quotedPath);
- file.open(true);
- }
-
- !!/Script
-