Syntax for it:
Code: Select all
rename [mode (b|r|s|k|e)], pattern, [preview (p)], [itemlist], [matchcase]Code: Select all
rename s, "text/TEXT", 1;Code: Select all
rename s, "text/TEXT", 0;Thank you in advance!
Code: Select all
rename [mode (b|r|s|k|e)], pattern, [preview (p)], [itemlist], [matchcase]Code: Select all
rename s, "text/TEXT", 1;Code: Select all
rename s, "text/TEXT", 0;
Rename method doesn't have a case switch. Considering a significant part of rename method deals with renaming strings depending on patterns then it would be valuable not to worry about the case of those patterns.TheQwerty wrote:I don't understand this request.
All of the methods that care about case already have switches, so what's gained by adding another parameter other than confusion?

I think the "confusion" comes form the fact that ivan doesn't seem to think reading the Help or the wiki is worth his time, he'd rather ask others in the forums. Hell, he didn't even read the tips of the rename search/replace feature which states :TheQwerty wrote:All of the methods that care about case already have switches, so what's gained by adding another parameter other than confusion?
Examples:
before/now = replace all 'before' with 'now' (case-insensitive: a=A)
before/now\ = replace all 'before' with 'now' (case-sensitive)
My apologies, it is absent from the Help file and the "case insensitive statement" is not present when I looked up rename scripting command in the Wiki. Believe me, now that I'm getting more into scripting I use those resources much more than I have done 6 months agojacky wrote:I think the "confusion" comes form the fact that ivan doesn't seem to think reading the Help or the wiki is worth his time, he'd rather ask others in the forums. Hell, he didn't even read the tips of the rename search/replace feature which

hmm you're right, seems to be missing from the help file, I hadn't actually checkedivan wrote:My apologies, it is absent from the Help file and the "case insensitive statement" is not present when I looked up rename scripting command in the Wiki. Believe me, now that I'm getting more into scripting I use those resources much more than I have done 6 months ago
Actually, it is in the help, as well. It's the same situation, the Rename() command tells you only about the scripting command and then says "For the functionality of the different rename operations see also here." which links you to the File Menu -> Rename Special section which covers this.jacky wrote:hmm you're right, seems to be missing from the help file, I hadn't actually checked, sorry. But it is on the tips within XY, and it is on the wiki actually. Not on the page about the command rename itself, because from there you have the syntax for that command only, and links to the different rename mode (Batch, RegExp, etc) for each of the supported patterns syntax then. And on the Search/Replace it is there (I just checked that one, too
)
Oh yeah, well that's maybe cause I'm still running 7.60.0047 and have an old version then, cause my help file does have a mention of this only for RegExp rename, but nothing under Search/Replace...TheQwerty wrote:Actually, it is in the help, as well. It's the same situation, the Rename() command tells you only about the scripting command and then says "For the functionality of the different rename operations see also here." which links you to the File Menu -> Rename Special section which covers this.
Running the latest version, nothing is shown under Search/Replacejacky wrote:Oh yeah, well that's maybe cause I'm still running 7.60.0047 and have an old version then, cause my help file does have a mention of this only for RegExp rename, but nothing under Search/Replace...

Just added it. Will be there for you in 7.70.TheQwerty wrote:Ah.. indeed it's mentioned under RegExp but missing under the Search and Replace. Oops!