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 > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Today's Posts

 
Scripting the expansion of notes Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Just been asked about detecting and setting the expansion state of notes. The short answer is that nodes in the content panel have a note expanded property.

Code:
tell application id "OFOC"
	tell default document
		tell front document window
			tell content
				set oNode to leaf id "eV0HtQ2RJIi" -- choose some task by id, for example
				
				if not note expanded of oNode then
					set note expanded of oNode to true
				end if
			end tell
		end tell
	end tell
end tell
or, for a broader brush:

Code:
tell application id "OFOC"
	tell default document
		tell front document window
			tell content to set note expanded of leaves to true
		end tell
	end tell
end tell
 
 





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


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