Change Log for the latest
XYplorer BETA version:
Code: Select all
v22.40.0244 - 2021-11-22 10:19
+ Scripting got a new function.
Name: PathReal
Action: Returns the real path for a given path.
Syntax: pathreal([path])
path: Full real or virtual path to an item.
Defaults to the currently focused list item.
Remarks:
- Some paths support to be referred to by a shortened path spec, the
so-called virtual path. In XYplorer these paths are Desktop,
Documents, Downloads, Links, and <user> (there might be more in the
future). So these paths have at least two ways to be referred to,
mostly even three because all but <user> are contained within <user>.
For example:
Virtual path 1: Downloads\Alice\
Virtual path 2: Donald\Downloads\Alice\
Real path: C:\Users\Donald\Downloads\Alice\
- The return is always without trailing backslash.
Examples:
- All return "C:\Users\Donald\Downloads\Alice\6foot.jpg":
echo pathreal("Downloads\Alice\6foot.jpg");
echo pathreal("Donald\Downloads\Alice\6foot.jpg");
echo pathreal("C:\Users\Donald\Downloads\Alice\6foot.jpg");
+ Scripting got a new function.
Name: PathVirtual
Action: Returns the virtual path for a given path.
Syntax: pathvirtual([path], [flags])
path: Full real or virtual path to an item.
Defaults to the currently focused list item.
flags:
1: Mind current tree location (see examples).
Remarks:
The return is always without trailing backslash.
Examples:
- All return "Downloads\Alice\6foot.jpg":
echo pathvirtual("Downloads\Alice\6foot.jpg");
echo pathvirtual("Donald\Downloads\Alice\6foot.jpg");
echo pathvirtual("C:\Users\Donald\Downloads\Alice\6foot.jpg");
- All return "Donald\Downloads\Alice\6foot.jpg" if the current tree
location is anywhere in the "Donald" branch (else they return
"Downloads\Alice\6foot.jpg"):
echo pathvirtual("Downloads\Alice\6foot.jpg", 1);
echo pathvirtual("Donald\Downloads\Alice\6foot.jpg", 1);
echo pathvirtual("C:\Users\Donald\Downloads\Alice\6foot.jpg", 1);
* Scripting: The message "Script terminated by ESC." now appears in the
status bar instead of in a message box.
! SC IndexAtPos: Did not return the correct tab index (instead it returned
an internal tab ID which is independent of the tab position). Fixed.
To
update to this BETA version from XYplorer, hold down the
CTRL key while you click
Help | Online Support | Check for Updates. To
download it, choose a package: (1)
Installer Package, (2)
No-Install Package.
Note that BETA versions are work in progress and might contain fresh bugs. You have been warned. It's a good idea to backup your complete XYplorer settings (menu File | Settings Special | Backup Application Data Folder...) before running a new BETA version. This will also help in fixing any fresh bugs.