Page 1 of 1

SC rename - can't prevent preview on ConvertToASCII

Posted: 20 Feb 2025 23:45
by Malarki
In a script I am performing various character replacements on a file such as:

Code: Select all

rename s, "-/", , , 64;
which works fine, with no preview shown.

But when I try to use the pre-defined mode I cannot avoid / suppress the preview. For example

Code: Select all

rename "ConvertToASCII", , ,;
rename "ConvertToASCII", 0, ;
rename "ConvertToASCII", , 0;
rename "ConvertToASCII", , , 0;
and similar variations because I'm not sure if, with this mode, the preview must be actively suppressed or merely not enabled.

I have the same problem with "RemoveDiacritics".

Is there any way to avoid / suppress the preview with this mode?

Thanks

Re: SC rename - can't prevent preview on ConvertToASCII

Posted: 20 Feb 2025 23:50
by highend
No preview window here when using these rename types...

XY version?
Attach your XYplorer.ini as XYplorer.xys

Re: SC rename - can't prevent preview on ConvertToASCII

Posted: 21 Feb 2025 00:06
by jupe
You probably have this enabled:

File | Rename Special | Preview All

but maybe that shouldn't apply to the SC anyway.

Re: SC rename - can't prevent preview on ConvertToASCII

Posted: 21 Feb 2025 00:45
by Malarki
Yes - the problem is that I had "Preview All" enabled (XY 26.90.0100). And I didn't think to test in a Fresh instance, which would have led me to that.

I suggest to Don that, as with the other SC Rename choices, these special modes should allow for the preview to be skipped regardless of the GUI setting. I don't want to run without preview for manual use but the opposite is true for scripting.

Thanks for the help!

Re: SC rename - can't prevent preview on ConvertToASCII

Posted: 21 Feb 2025 09:09
by admin
Agreed! :tup:

Re: SC rename - can't prevent preview on ConvertToASCII

Posted: 21 Feb 2025 20:27
by Malarki
In v26.90.0102 this now works fine.

Code: Select all

rename "RemoveDiacritics";   // no preview even if GUI has those enabled for all
rename "RemoveDiacritics", ,p;  // with preview when actually wanted in the script
Thanks for the immediate review and adjustment!