Skip to main content
Participant
April 9, 2012
Question

Export multiple ARTBOARDS to multiple JPGs (AppleScript)

  • April 9, 2012
  • 3 replies
  • 18551 views

I´m aware that Illustrator doesn´t have multiple artboards options for JPG as it does with eps, or other formats, but is there any workaround for this??

Looping current artboard and exporting them to JPG or something. 

Or maybe there is someway to force the   "save multiple artboards:true" in JPG??

export document currentDoc to file exportFolder as JPEG with options ¬

                                                  {class:JPEG export options ¬

                                                            , quality:100 ¬

                                                            , artboard clipping:true ¬

                                                            , artboard range:1 - 2 ¬

                                                            , save multiple artboards:true}

This topic has been closed for replies.

3 replies

February 21, 2017

Adobe CC 2017 has this covered in the export option.

Inspiring
April 1, 2018

mind showing the property? I don't see it in ExportOptions except for PDF/Photoshop

brian_p_dts
Community Expert
Community Expert
July 14, 2022

Bringing this back from the dead to ask if anyone ever discovered how to accomplish this via scripting. Or is the solution to just clip to artboard and iterate through active artboard as described above?

Participant
January 13, 2016
Inspiring
April 9, 2012

Looping current artboard and exporting them to JPG or something. Yep thats it… I don't AppleScript a great deal these days so get back if you do get stuck ( I'll need to do some dusting )

The app lets you set the active artboard by index… So just count them and loop… You can't make a property that just ain't there…

macbeth07Author
Participant
April 9, 2012

Could not do it by pure AppleScript, I had to use Javascript like this:

do javascript "app.activeDocument.artboards.setActiveArtboardIndex(0);"

                                        set newFilePath to exportFolder & "Grafica-Estructura.jpg"

  export current document to newFilePath as JPEG with options ¬

                                                  {class:JPEG export options ¬

                                                            , quality:100 ¬

                                                            , artboard clipping:true}

                                        do javascript "app.activeDocument.artboards.setActiveArtboardIndex(1);"

                                        set newFilePath to exportFolder & "Grafica-Caracterizacion.jpg"

  export current document to newFilePath as JPEG with options ¬

                                                  {class:JPEG export options ¬

                                                            , quality:100 ¬

                                                            , artboard clipping:true}

Inspiring
April 10, 2012

I've even posted that solution at MacScripter and forgotten all about the command being missing from AppleScript ( whats why I retain the muppet crown )…