Code: Select all
fileA
fileb
filec
... and fileD, FileE so on
Code: Select all
fileA : set comment a001
fileb : set comment a002
filec : set comment a003
... and so on
Any help would be much appreciated
Code: Select all
fileA
fileb
filec
... and fileD, FileE so on
Code: Select all
fileA : set comment a001
fileb : set comment a002
filec : set comment a003
... and so on
Code: Select all
//set comments
$prefix = "a"; //the first, text part of the comment
$num_len = 3; //the length of the number part
$count = 1; //the start of numbering
foreach($item, get("SelectedItemsPathNames","|")) {
tag $prefix . strrepeat("0", $num_len - strlen($count)) . $count++, $item, 2, 1;
}Works like a charm,LittleBiG wrote:Edit: comments added. Change those parameters to modify the behaviour of the script.Code: Select all
//set comments $prefix = "a"; //the first, text part of the comment $num_len = 3; //the length of the number part $count = 1; //the start of numbering foreach($item, get("SelectedItemsPathNames","|")) { tag $prefix . strrepeat("0", $num_len - strlen($count)) . $count++, $item, 2, 1; }