Thursday, November 23, 2017

#1 2017-09-18 10:21:48 am

GrahamH
Member
Registered: 2017-02-10
Posts: 5

Illustrator rearrangeartboards

Hi,

Im trying to use the AppleScript command "rearrangeartboards" for Illustrator, but I can't seem to get the syntax to work or locate any examples on the internet other than JavaScript.

Can anyone help with an example, perhaps including the various with properties {documentartboardLayout:gridbyrow}

Many thanks in advance

Graham

Offline

 

#2 2017-09-18 09:49:32 pm

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5179

Re: Illustrator rearrangeartboards

Applescript:

tell application id "com.adobe.illustrator" -- Adobe Illustrator
   rearrangeartboards current document artboardLayout grid by row artboardRowsOrCols 1 artboardSpacing 20.0 without artboardMoveArtwork
end tell


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

#3 2017-09-19 02:16:09 am

GrahamH
Member
Registered: 2017-02-10
Posts: 5

Re: Illustrator rearrangeartboards

Thanks Shane this works great... hoping you would get onboard with this answer!

I had tried this but for some reason they decided to throw out convention:

rearrangeartboards current document {artboardLayout:grid by row, artboardRowsOrCols: 1, artboardSpacing 20.0}

thanks again

Graham

Offline

 

#4 2017-09-19 02:20:08 am

Shane Stanley
Member
From:: Australia
Registered: 2002-12-07
Posts: 5179

Re: Illustrator rearrangeartboards

GrahamH wrote:

rearrangeartboards current document {artboardLayout:grid by row, artboardRowsOrCols: 1, artboardSpacing 20.0}



FWIW, I think you're confusing setting properties with calling commands.


Shane Stanley <sstanley@myriad-com.com.au>
www.macosxautomation.com/applescript/apps/

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)