The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
FAQ Members List Calendar Today's Posts

 
Changing size of canvas in AppleScript Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
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?
 
 





All times are GMT -8. The time now is 04:39 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.