AppleScript "export as svg" with options triggers error
tell application "Adobe Illustrator"
try
tell current document
export to outFile as SVG with options {class:SVG export options, coordinate precision:5, font type:outline font, minify svg:true, raster image location:link, responsive svg:true}
end tell
on error errMsg number errNum
log errNum & space & errMsg
tell current document
export to outFile as SVG with options {coordinate precision:5, font type:outline font, minify svg:true, raster image location:link, responsive svg:true}
end tell
end try
end tell
Including class:SVG export options triggers an error at runtime even though the code compiles. Excluding it in the list of options exports a file but applies none of the options. Someone else discovered this and commented in the support forums in 2016.