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

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

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

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