Answered
export range of artboards to SVG files with names
i got this script that allow me to export range of artboards to SVG files , but I cant find how to export each artboard with its name or an array of names
var docRef = app.activeDocument;
var path = docRef.path;
function exportFileToSVG (dest) {
if ( app.documents.length > 0 ) {
var exportOptions = new ExportOptionsWebOptimizedSVG();
var type = ExportType.WOSVG;
var fileSpec = new File(dest);
exportOptions.saveMultipleArtboards = true;
exportOptions.artboardRange = '1-2';
exportOptions.coordinatePrecision = 2;
exportOptions.fontType = SVGFontType.OUTLINEFONT;
exportOptions.svgMinify = true;
exportOptions.svgId = SVGIdType.SVGIDREGULAR;
app.activeDocument.exportFile( fileSpec, type, exportOptions );
}
}
exportFileToSVG('~/Desktop/blah.svg');