The Omni Group Forums

The Omni Group Forums (
-   OmniFocus 1 for Mac (
-   -   Appscript to delete project (

Gambusia 2010-08-07 08:57 AM

Appscript to delete project
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.

All times are GMT -8. The time now is 02:57 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.