PDA

View Full Version : scripting task adds and preventing duplicates


cpreus
11-17-2007, 10:37 PM
Hi all,

I wrote a script to cull tickets from Trac (or any RSS feed for that matter) and insert them as tasks in OmniFocus (similar to this thread (http://forums.omnigroup.com/showthread.php?t=5190)).

Since I would like it to run once a day, I'd like to prevent duplicates from being entered (e.g. an RSS item from the day before). The complete method only supports project and context and the search term method appears to be a window operation.

Is it possible? Recommendations?

Thanks,
Cory

Lutin
11-18-2007, 04:22 AM
I would tackle your problem from the other side: keep track of the last item added, and start again from the next one.

cpreus
11-18-2007, 01:15 PM
Mmm, yes. Though I also would like to maintain priority (OmniFocus' sort order) by using a feed ordered as such. Last item added won't necessarily play well with it.

For now though, just being able to take tickets (user stories), make them projects and break it down to tangible actions in OmniFocus is wonderful.