The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle Extras (http://forums.omnigroup.com/forumdisplay.php?f=7)
-   -   duplicate Canvas from one document to another not possible in OG 4.2 (http://forums.omnigroup.com/showthread.php?t=4594)

ChristianS 2007-08-20 11:44 AM

duplicate Canvas from one document to another not possible in OG 4.2
 
Hi,
This is nice short Code to copy a complete Canvas from one Document to another Document.

tell application "OmniGraffle Professional"
duplicate canvas 1 of document 2 to end of canvases of document 1
end tell

If document 2 is a Stencil Document.

In OG 4.1.2 it works.
In OG 4.2 you get a "NSInternalScriptError"

Any Hints?
Best Regards

ChristianS 2007-08-22 01:26 PM

Hi,
I want to specify this exactly.

duplicate canvas 1 of document 2 to end of canvases of document 1

if document 1 ans 2 from the same Type (Stencil Document, Normal Document) it works in OG 4.2., OG 4.2.1. Beta too.
If one of the Documents is different Type, it don't work.
I ask for a Hint, because I want to duplicate a Canvas from a Stencil to a Normal Document as a Template.
This works in OG 4.1.2.
Again
Any Hints to make this possible?

RobTrew 2007-09-12 12:14 PM

The following works fine in 4.2.1

[CODE]tell application "OmniGraffle Professional 4"
duplicate canvas 1 of document 2 to end of canvases of document 1
end tell[/CODE]


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

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