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

How do I test a property value in Applescript? Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
I'm attempting to write an applescript to sit in a subgraph object. the aim of the script is to toggle the state of the subgraph. I am failing to get my if statement to work and have tried all sorts of incorrect syntax. Please correct my code

tell application "OmniGraffle Professional 5"
	tell canvas of front window
		set theProps to (get the properties of subgraph -1)
		if theProps(collapsed) then
			--display dialog "I'm Collapsed"


			--display dialog "I'm Expanded"
		end if
		--set properties of subgraph -1 to {collapsed:true}
	end tell
end tell
best wishes

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Access "Wrap To Shape" property from Applescript? Sophie OmniGraffle General 12 2013-01-19 09:50 PM
Property Layout CaseyH OmniGraffle General 3 2011-03-02 07:35 PM
Can't TYpe in Property Fields joelande OmniGraffle General 0 2010-11-08 09:04 AM
Applescript error: reading the property list of non-inbox tasks RobTrew OmniFocus Extras 1 2008-01-14 12:33 AM

All times are GMT -8. The time now is 03:55 PM.

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