View Single Post
The core of an applescript component might look sth like this:

Code:
on AddTodo(strTodo)
	tell application id "OFOC"
		tell default document
			set refExisting to a reference to (flattened tasks where name contains strTodo)
			if (count of refExisting) < 1 then
				set oTask to make new task at end of inbox tasks with properties {name:strTodo}
			end if
		end tell
	end tell
end AddTodo