rename files in a batch operation - RealWorld forums

Log-in or register.

rename files in a batch operation

Evelyne
on October 1st 2009

Dear All,

I just wanted to share this nice (part of a) batch operation that can be used to rename the pictures when saving them in a batch operation.
Thanks to Vlasta for his very kind help.

Use the JavaScript operation instead of Batch - Save Result.
Then the following code must be used:

Configuration:

Configuration.AddEditBox("name", "Name", "Base of file name.",
Configuration.GetValueOrDefault("name", "_name_"));

Execution:

var save = Operation.Create("Batch - Save Result");
save.OutputPath = "%FOLDER%\\modified\\" Configuration.GetValue("name") "-%INDEX%.%EXT%";
Operation.Execute(save, Document, Context);

Evelyne

sixλxis
on February 19th 2010

Might be useful... ;-)

Page views: 14961       Posts: 2      
Select background
I wish there were...
What about ICL files?