平时你是不是经常会有在illustrator中,选中几个对象另存为.ai文件,发给同时或客户呢?
如果有那么这个脚本很适合你。
每次查看代码,你定能学到一些。
(function(){
try{
app.activeDocument.exportSelectionAsAi.toString();
}catch(e){
alert("是这个功能不能使用的版本的插画家。");
return false;
}
var doc = app.activeDocument;
var savePath = doc.path.exists ? doc.path : Folder.selectDialog ('请选择要保存的文件夹。');
var D = prompt("起个名字吧",(new Date()).getTime());
var F=File(savePath+"/"+D+".ai");
app.activeDocument.exportSelectionAsAi(F);
})();