SC rename - can't prevent preview on ConvertToASCII

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

SC rename - can't prevent preview on ConvertToASCII

Post 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

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

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

Post by highend »

No preview window here when using these rename types...

XY version?
Attach your XYplorer.ini as XYplorer.xys
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3292
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

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

Post by jupe »

You probably have this enabled:

File | Rename Special | Preview All

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

Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post 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!

admin
Site Admin
Posts: 64915
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

Agreed! :tup:

Malarki
Posts: 208
Joined: 03 Dec 2019 02:51
Location: Windows 10 x64; 100% Scaling

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

Post 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!

Post Reply