View Single Post
Have you looked at the OmniFocus dictionary in Script Editor?



Looks like you could set the assigned container (after looking it up) and tell the document to compact (appears to be what the Clean Up button does).