I am the author of a plug-in that adds a new file format (.xaml) to the File>Export>Export As... menu. In addition to using the plug-in manually, I am able to record an Illustrator Action and execute that Action successfully.
However, I have a user who is trying to export using a script, and they're not sure how to indicate the file format that my plug-in adds in their call:
There are many ExportTypes that have been defined by Illustrator, and as you'd guess, none of them relate to the new file format.
Is there a way to query for the ExportType value based on (perhaps) the friendly name of the format, then pass that along in the exportFile call? Or perhaps there's a way to indicate the value when my plug-in registers its custom file format with Illustrator? I've looked for both of these things, but I've come up short.
Thank you in advance for any pointers!
Since Export is tightly bound to already supported file formats you won't be able to use it for export.
however, you can use the below method to do the job.
sendScriptMessage (pluginName, messageSelector, inputString)
Sends the script message to the required plugin.
pluginName Plugin to which message needs to be sent.
messageSelector Functionality that is to be executed.
inputString Pass any data encoded in a string.
Hope it helps!
I remember the canvas converter from Mordy's blog, what a magical blog it was - makes me think time just goes too fast, there's still such gems inside there.