It does the following:
Asks the user which folder to open in the new pane (defaults to the current path).
Creates an HTML page in the current path named "QDP-<dhhmmss>.html" (which refreshes/links to the selected path).
Previews the file.
This should convert the XY preview pane into an embedded explorer window. You'll then be able to drag files from the preview pane to XY just fine, and you can rename and (clumsily) explore.
One interesting advantage is you're able to use the standard undo on some actions that took place in XY (deleting files).
The unfortunates:
It seems all of the scriptable preview/info panel commands only work as toggles so the behavior will differ depending on whether or not you have the info panel visible at execution.
I can't find a way to get it to display the tree or catch all of its normal shortcut keys, so navigating is a bit clumsy, but not impossible.
Dragging from XY to the preview pane is impossible because it will close the preview.
Dragging from the pane to XY does work, but will usually close the preview as well.
Perhaps the easiest way to go between the two panes is to use the catalog and "Copy All Items in Category" context menu item (though, like dropping, this will close the preview).
There's no good way for this script to clean up after itself and remove the temp file that it creates, sorry but you are on your own there.
Enjoy!
Code: Select all
"QDP : qdp"
InputFolder($path, "<curpath>", "Folder to open in lower pane:");
Set($cb, "<clipboard>");
CopyText("<html><head><meta http-equiv=""Refresh"" content=""0; url=file:///$path"" /></head><body><a href=""file:///$path"">$path</a></body></html>");
#219; //Paste to file.
CopyText("$cb");
Focus("List");
Rename("bat", 'QDP-<datec hhmmss>.html/e');
#260; //Show Find Files
#174; //Show Preview
Requires: XYplorer v7.60.000+
- Updates:
- 2008-09-17 - Updated to use new script syntax.