View Single Post
I can't seem to delete a project contained in a folder using appscript (scripting bridge to AppleScript from Ruby). I can "see" the project and manipulate its contents using appscript--I just can't seem to delete it. Here's what I have:

require 'rubygems'
require 'appscript'

of ='OmniFocus').default_document
st = of.folders['My Folder'].projects['My Project']

I can retrieve the name of st, count its tasks, create new tasks for it, etc. I just can't delete it.

The error says that it's an OSERROR: -10000 with message: "Apple event handler failed."

Can anyone help? Thanks.