View Single Post
You could begin by experimenting with code like:

Code:
tell application "OmniFocus"
	repeat with oLeaf in leaves of content of window 1
		set oTask to value of oLeaf
		try
			set flagged of oTask to true
		end try
	end repeat
end tell
and
Code:
tell application "OmniFocus"
	-- select leaves of content of window 1
	pbcopy leaves of content of window 1
end tell