That's correct. I was hoping we could have a couple of options to say if scripts can override preferences or not.eurytos wrote:I *think* he was trying to say that he wants to be able to choose whether a preference can be overwritten by a script.
something like:
preference one: script can overwrite
preference two: do not allow script to overwrite
I could be way off though...
Rename current item with name of current folder
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122


I must once again reiterate the importance of making an option for a script to override a preference. Currently, option #170 is useless to have in a script because option #169 does the same thing with the box to turn off deletion confirmations unticked.
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122


Please see command delete...ivan wrote:I must once again reiterate the importance of making an option for a script to override a preference. Currently, option #170 is useless to have in a script because option #169 does the same thing with the box to turn off deletion confirmations unticked.
Proud XYplorer Fanatic
Ok, so I can substitute this:jacky wrote:Please see command delete...
Code: Select all
#170;Code: Select all
delete [1][,0][<items>]Code: Select all
<items>Code: Select all
Set(%cf%,<curfolder>);
Set(%cp%,<curpath>);
Set(%nn%,<date yyyymmddhhnnss>);
OpenWith("""C:\program files\winrar\winrar.exe"" e -- *.rar * %nn%-temp", "s");
Msg("Press OK when WinRAR is finished.",1);
GoTo("<curpath_s>\%nn%-temp")
Sel(a);
Rename(bat,%cf%);
Focus(L);
MoveTo("..\..");
#523;
#523;
Rename(bat,%nn%,,"%cp%");
SelFilter(%nn%, d, Name);
Focus(L);
#170;
Windows Vista Business SP1 32-bit, Logitech MX400 mouse, SetPoint 4.60.122


hmm.. so you want to delete, using the recycle bin, but no confirmation, right? If so, simply use:
No need to specify a parameter for <items> as it'll use selected items on List since focus was put there right before.
BTW you realize you had that exact example right on the wiki:
Code: Select all
Delete(1,0);BTW you realize you had that exact example right on the wiki:
XYwiki wrote:delete 1, 0, ":list";
Sends all selected List items to the Recycle Bin without asking for confirmation
Proud XYplorer Fanatic
XYplorer Beta Club