Skip to main content
Participant
March 30, 2010
Question

Can I extend the scripting support through the SDK?

  • March 30, 2010
  • 1 reply
  • 731 views

I need to create an automated process of saving different layers from documents as different file formats. Unfortunately there is no scripting support for exporting to EMF-format, which I need to do. I glanced on the possibility of calling a self-defined action from my script, but I need to automatically set the output folder and name of the exported files which apparently isn't possible.

In my frustration I've started to think about a more "advanced" solution, which is: Can I somehow extend Illustrator's scripting support, to be able to export files as EMF? I can't even find how to export files to EMF in the SDK documentation, so I feel a bit lost.

Has someone done something like this? Or even more desirable, does someone have a better solution to this?

Thanks!

Johannes

This topic has been closed for replies.

1 reply

3DTOPO
Inspiring
March 30, 2010

Dear Johannes,

If I had no experience with the SDK, and I only needed a solution as described, I would certainly prefer a scripting solution.

In that case, I would recommend saving the file to a fixed path and file name with an action or script.

Then a script could move/rename the file to where you would like it saved. As long as it was being moved to the same drive, the difference in performance would be imperceptible.

You didn't mention what scripting environment you are using, however, this would be trivial with AppleScript and most likely any scripting language you might be using. If you are using AppleScript, I could provide a one line example on how to move files...

Hope this helps.

Best.

Participant
March 30, 2010

Thank you,

Of course! That is a brilliant and simple solution. I should have thought of that myself, but instead I had to complicate things...

That's the way I will do it.

Again, thanks!