Code: Select all
v12.10.0002 - 2013-02-09 17:59
+ Scripting: Now you can drop files onto XYS-files. The dropped
files are referred to in the dropped-on script by <get drop>.
This can get pretty cool in Dual Pane mode. You can have a folder
with assorted script files in one pane, and your working folder in
the other pane. Now you just drag-and-drop files onto the scripts
for automated processing.
Primitive example script in file "drop_on_me.xys":
text <get drop>;
Even cooler: You can also drop on MSR (Multi Script Resource). In
that case you get the usual popup menu of choices, and the <get
drop> will be available in each of the scripts.
Primitive MSR example script in file "drop_on_me_MSR.xys":
"Text"
text <get drop>;
"Echo"
echo <get drop>;
Notes:
- If more than one file is dropped <get drop> returns one per
line. Alternatively you can pass a separator like this:
text <get drop |>;
- The <get drop> variable is cleared after the script is
processed, so it cannot be used after the drop event is
completed.
- If the script contains no <get drop> variable it is run
nevertheless just as if you loaded the script file.
! Scripting: v12.10.0001 crashed after calling a script. Fixed.
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.
XYplorer Beta Club