Rename active document while saving
hi
is there possibility through script rename active document while saving?
for example:
current: 124efg.ai
to save , exit: 124efg_x.ai.
is possible? can me?
beto, take @ java script sample files. there's new name function can use. here's example
/*********************************************************
getnewname: function new file name. primary
name same source file.
**********************************************************/
function getnewname()
{
var ext, docname, newname, saveinfile, docname;
docname = sourcedoc.name;
ext = '.pdf'; // new extension pdf file
newname = "";
( var = 0 ; docname[i] != "." ; i++ )
{
newname += docname[i];
}
newname += ext; // full pdf name of file
// create file object save pdf
saveinfile = new file( destfolder + '/' + newname );
return saveinfile;
}
More discussions in Illustrator Scripting
adobe
Comments
Post a Comment