View Single Post
Hello,

I'm trying to create a canvas of a specific size via AppleScript with the current three lines, but they keep giving me an error.

Code:
close front window
make new document with properties {template: \"Blank\"}
make new canvas with properties {page size: {600, 600}}
execution error: OmniGraffle Professional 5 got an error: Can’t make or move that element into that container. (-10024)
If I try not closing it, but editing the existing canvas, I get a different error.

Code:
set page size of properties to {600, 600}

OmniGraffle Professional 5 got an error: Can’t make page size of properties of canvas of window 1 into type reference. (-1700)
Does anybody know if it's possible to put a new canvas into a document of a specific size from Applescript this way?