Skip to main content
karthickm50893796
Inspiring
June 4, 2016
Answered

How to delete specific Artboard in illustrator using script

  • June 4, 2016
  • 1 reply
  • 4001 views

Here u can see 4 art boards on attached screenshot, but i want to delete 1,3,4 art boards

i like to work with art board 2

This topic has been closed for replies.
Correct answer Kevin Parrott

just wrap Alexander's script in a do javascript to incorporate it into your applescript workflow.

 

tell application "Adobe Illustrator"

    do javascript "    function removeArtboards ( arr ) { 

        var i = arr.length; while ( i-- ) activeDocument.artboards[ arr[i] ].remove(); 

    } 

    removeArtboards( [0,2,3] );  "

end tell

1 reply

Alexander Ladygin
Inspiring
June 4, 2016

As an option:

function removeArtboards ( arr ) {

    var i = arr.length; while ( i-- ) activeDocument.artboards[ arr[i] ].remove();

}

removeArtboards( [0,2,3] );

karthickm50893796
Inspiring
June 4, 2016

Its work good,

how to convert this in Applescript

Alexander Ladygin
Inspiring
June 4, 2016

Unfortunately I do not write on applescript.