Any way to suppress "Items that have not been renamed"?

Discuss and share scripts and script files...
Post Reply
Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Any way to suppress "Items that have not been renamed"?

Post by Mesh »

Part of a script I use runs Command # 126, and if no changes needed to be made, I am now getting a popup window, "Items that have not been renamed".

This didn't happen with XY 9.7x, but it's happening with XY 9.9x.

Is there any way to suppress this behavior when this command is being called from a script?

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: Any way to suppress "Items that have not been renamed"?

Post by zer0 »

I get this too and I don't like it. Here are the relevant changelog entries:

Code: Select all

v9.90.0001 - 2011-01-07 15:14
    + SC rename enhanced: Added a flags parameter to control messages on 
      failures.
      Syntax: rename [mode (b|r|s|k|e)], pattern, [preview (p)], _
                  [itemlist], [flags=1]
        flags: (binary field, defaults to 1)
          1: PromptOnFailure (prompt on each failed rename attempt)
          2: ShowListOfUntouched (show list of all items that kept 
             their old name)
and

Code: Select all

v9.80.0101 - 2010-12-10 11:00
    * Rename Special: Now when one or more items within a mass rename 
      cannot be renamed (e.g. because it is locked by another 
      application) you get a message telling you about this and asking 
      you whether you want to proceed (including an option "Don't ask 
      again" which is honored during this Rename Special job).
      Further, when the job is finished, you are shown a list of all 
      items that could not be renamed.
As I have a script that executes a bunch of renaming operations -- not all relevant for particular file(s) -- having a dialogue window show up as often as it does seems unnecessary as, personally, I am not interested in file(s) that did not get renamed.
Last edited by zer0 on 11 Feb 2011 23:34, edited 1 time in total.
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

Mesh
Posts: 956
Joined: 24 Mar 2008 21:22

Re: Any way to suppress "Items that have not been renamed"?

Post by Mesh »

There's a difference between a message showing you which items couldn't be renamed because they were locked, and a message showing you which items simply weren't renamed because it wasn't necessary (e.g. Capitalizing an item which was already capitalized).

The first one, I'm fine with. The second one, I find annoying.

I'm going to post this in the Bugs sub.

Thanks for rooting out the Changelog items!

Post Reply