PDA

View Full Version : duplicate Canvas from one document to another not possible in OG 4.2


ChristianS
2007-08-20, 10:44 AM
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, 12: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, 11:14 AM
The following works fine in 4.2.1

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