Page 1 of 1

rename script does not work anymore

Posted: 17 Aug 2016 11:10
by lian00
Hello,
I used

Code: Select all

rename b, '*-new-name-<date yyyy-mm-dd>', ,,8; 
without problem and it does not work anymore in v.17 (nothing is happening).

Code: Select all

rename b, 'new-name-<date yyyy-mm-dd>', ,,8; 
works.

Re: rename script does not work anymore

Posted: 17 Aug 2016 11:16
by highend
Works fine for me in current beta and v17 official...

Re: rename script does not work anymore

Posted: 17 Aug 2016 11:25
by lian00
highend wrote:Works fine for me in current beta and v17 official...
OK, it works when I launch it directly but no more in a script launched by button - different entries (the other entries are working).

Re: rename script does not work anymore

Posted: 17 Aug 2016 11:34
by highend
Then post the full script? oO

[Move to: Tips & Tricks, Questions & Answers]

Re: rename script does not work anymore

Posted: 17 Aug 2016 19:29
by lian00

Code: Select all

"aller green"
	focus "P1";
	goto "E:\img-range\decale\2006-2008?lbl:green";
	$file = gettoken("<allitems |>", -1, "|");
	goto "E:\img-range\decale\2006-2008";
	selectitems "<curpath>\$file",, 1;//will select and focus somefile
"------------"	
"Renommer xz" 
 $name = input("Modifier le nom", "Nom", , [style=s], [cancel], [width=600], [height=400]); copytext "$name"; renameitem( "mm-<date yyyy-mm-dd>-<clipboard>", , ,);
"------------"	
"Rajouter date"
    rename b, '*-<date yyyy-mm-dd>', ,,8 ;
"Vince"
    rename b, 'vince-<date yyyy-mm-dd>', ,,8;
"Smilby"
    rename b, 'smilby-<date yyyy-mm-dd>', ,,8;
"Dink Siegel"
    rename b, 'siegel-<date yyyy-mm-dd>', ,,8;
"Wilson"
    rename b, 'wilson-<date yyyy-mm-dd>', ,,8;
"Buck Brown"
    rename b, 'buck-brown-<date yyyy-mm-dd>', ,,8;
"Otto Schmidt"
    rename b, 'otto-schmidt-<date yyyy-mm-dd>', ,,8;
"Dempsey"
    rename b, 'dempsey-<date yyyy-mm-dd>', ,,8; 
"Sokol"
    rename b, 'sokol-<date yyyy-mm-dd>', ,,8;
"feroumont-ero"
    rename b, '*-feroumont-ero-<date yyyy-mm-dd>', ,,8; 
"--------------"
"Recherche derniers secret"
	goto "E:\img-range\images-perso-xz\faits?*2015-01*"; 
	wait 300;
	button "viewthumbs";

"Recherche derniers normal"
	goto "E:\img-range\images-perso-xz\faits?*2012-07*"; 
	wait 500;
	button "viewthumbs";
"-------------"
"Creer alternative-xy"
	openwith "C:\Program Files\XnViewMP\xnviewmp.exe";
	wait 700;
	run "E:\Lian\vrac\scriptsautoit\retaille-xnview-4-5.exe";
The two entries with rename b, '*- do not work.

Re: rename script does not work anymore

Posted: 17 Aug 2016 20:23
by highend
W 10 LTSB x64 RS1, XY 17.00.0200

Both *... renames from your script work fine...

Re: rename script does not work anymore

Posted: 17 Aug 2016 23:15
by lian00
Very strange. I will try to recreate the list and test.