Export Variables Illustrator.
I’m new with apple script. But I want to develop some drawing tools in Illustrator CS. The problem is I cannot make the ‘export variables’ function to work. This simple script
tell application "Illustrator CS"
set kleur to "Hiiiii"
export variables kleur of document 1 to file "HD-XXL:proefvar.xml"
end tell
gives me all the time the error message:
“Adobe Illustrator CS got an error: File/Folder expected”
I tried all different file/path notations but it gives me always the same error.
Does anybody have some ideas or comments about this?
This is what the dictionary says:
export variables document -- the document object or objects to be operated upon
to file specification -- file spec to export to
And this is what the Guide says about this topic:
document
The document object or objects to be operated on)
Objects supported: variables
Returns: nothing
to [file] file specification:
The file to export the variable library into, specified as a string containing the full file path or an alias. When using a string, precede the string with the term file.)