View Single Post
Quote:
Originally Posted by ptorngaard View Post
But I cannot figure out how to copy a section from a different part of the document
Something along these lines, for example.

Code:
set _today to current date

tell application "OmniOutliner Professional"
	set entryTitle to text returned of (display dialog "Activity" default answer "" buttons {"OK"} default button 1)
	tell front document
		unhoist
		try
			set rowTT to first row where value of cell "Type" contains "Template"
		on error
			return
		end try
		
		set selected of rows to false
		set rowNewDay to make new row at end of rows
		tell rowNewDay
			set selected to true
			set value of cell "Date" to _today
			set topic to entryTitle
			hoist
			duplicate children of rowTT to after children
		end tell
	end tell
end tell