The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle Extras (http://forums.omnigroup.com/forumdisplay.php?f=7)
-   -   Applescript: user data item of canvas (http://forums.omnigroup.com/showthread.php?t=20924)

cyleigh 2011-05-02 05:50 PM

Applescript: user data item of canvas
 
Within the OG interface I can select a canvas and then provide some user data items for the canvas. However, I can not access this information via applescript like I do with an object.

Is this a bug, or am I doing it wrong?

[code]

tell application "OmniGraffle Professional 5"
tell document 1
tell canvas 1
tell graphic 1
set myKind to value of user data item "myKind"
display dialog myKind
-- works with appropriate user data
end tell
end tell

tell canvas 1
set myClassification to value of user data item "myClassification"
display dialog myClassification
-- OmniGraffle Professional 5 got an error: Canít get user data item "myClassification" of canvas 1 of document 1.
end tell
end tell
end tell
[/code]

RobTrew 2011-05-04 08:59 PM

In the OmniGraffle applescript library, graphic objects have a [I]user data[/I] property, but the canvas does not.


All times are GMT -8. The time now is 07:19 AM.

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