The Omni Group Forums

The Omni Group Forums (
-   OmniGraffle Extras (
-   -   Applying master canvas to canvas dynamically (

draupp 2007-08-03 11:24 AM

Applying master canvas to canvas dynamically
Does anyone know if there is a way to set or apply a master canvas from the same document or another document to a specific canvas. I would like to automate this through applescript and i'm running into some road blocks.

here is what i was thinking.

[CODE]set master of canvas 2 of myDocument to master 2[/CODE]

This isn't working, maybe im referencing the master wrong. not sure. Any insight would be awesome. thanks

ChristianS 2007-08-20 11:10 AM


You have to reference the master 1 or 2 with its document.
So try this.

tell application "OmniGraffle Professional 4"
set fw to front window
set fd to fw's document
-- set shown canvas master
set fw's canvas's master to fd's master 1
-- set a specific Canvas of document to a master
set fd's canvas 1's master to fd's master 1
end tell
Best Regards

All times are GMT -8. The time now is 07:14 PM.

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