The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle Extras (http://forums.omnigroup.com/forumdisplay.php?f=7)
-   -   Applying master canvas to canvas dynamically (http://forums.omnigroup.com/showthread.php?t=4399)

draupp 2007-08-03 10: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 10:10 AM

Hi,

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 01:12 AM.

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