The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Applescript: user data item of canvas Thread Tools Search this Thread Display Modes
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?

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
In the OmniGraffle applescript library, graphic objects have a user data property, but the canvas does not.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Canvas to PDF Applescript simonpssetterstrom OmniGraffle General 0 2012-05-01 01:30 PM
AppleScript to query the user data key/value pairs apl OmniGraffle General 2 2012-01-14 01:05 AM
Leveraging custom/user data fink08 OmniGraffle General 1 2009-11-12 07:08 AM
What is first item in Prefs:Data? ptone OmniFocus 1 for Mac 3 2007-11-28 08:01 AM
Sharing OF data across user accounts beelers OmniFocus 1 for Mac 0 2007-11-24 04:51 PM

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

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