Applescript Illustrator export each artboard as SVG
Hi,
Adobe support, can you please visit the code below and recommend why the SVG isn't coming up with individual artboard? Seems same artboard gets export 4 times, with updated file-name:
--used normal repeat routine to open multiple illustrator file(s), then:
try
export to outFile as SVG with options {artboard range:ab_range, save multiple artboards:true, coordinate precision:2, font type:outline font, minify svg:false, raster image location:"embed", responsive svg:false}
on error e
display dialog e as string
try
export to outFile as SVG with options {artboard range:ab_range}
on error ee
display dialog ee as string
end try
end try
-- Also realised that this export command essentially gets skipped and it uses the second option to export the illustrator file however not all artboards only, 4th one and 4 times, with artboard-names for each. That too it is essentially using 'save-as' SVG rather the export function. Here is the test AI file.
https://drive.google.com/file/d/1RRbvmZnuY9K69K6JHmn-e78hb3ENf58W/view?usp=sharing
Any help will be much appreciated.
Kind regards
Sapan
