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 General
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Applescript: which shape properties can be set via a dictionary? Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I am trying to set the properties of an existing shape by passing a dictionary of name : value pairs, following RobTrew's advice. But it seems hit-or-miss as some properties (e.g. thickness, draws shadow) change properly, while others (e.g. text, gradient color) do not change.

Code:
tell application id "OGfl"
	set lstSeln to selection of front window
	set oShape to item 1 of lstSeln
	tell canvas of front window
		set properties of oShape to {prop1: val1, prop2: val2, ....}
	end tell
end tell
Is there some rule & reason about which properties can be set this way?
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applescript: set multiple shape properties in 1 call? Sophie OmniGraffle General 5 2012-11-18 06:30 AM
Set a bunch of shape properties in one call? Sophie OmniGraffle General 0 2012-11-07 09:28 PM
applescript dictionary version jamesafoster OmniFocus Extras 1 2009-10-29 01:46 AM
Protect shape properties mattydj OmniGraffle Extras 1 2009-10-22 03:43 PM
Understanding Applescript Dictionary tomrowan OmniGraffle Extras 2 2007-01-25 04:29 PM


All times are GMT -8. The time now is 12:13 AM.


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