The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus 1 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Appscript to delete project Thread Tools Search this Thread Display Modes
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:

Code:
require 'rubygems'
require 'appscript'

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

st.delete
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.
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Collaboration - how to delete a project? hpautniosdev OmniPlan General 2 2013-03-05 02:57 PM
How to delete an action? [A: Swipe row, then tap "Delete" button that appears.] kholec OmniFocus for iPhone 2 2011-05-22 06:16 PM
setting Text properties using Ruby appscript or RubyOSA Joe.Hocker AppleScripting Omni Apps 1 2009-02-14 12:20 AM
Feature Request - Delete Project Protection PattiBarcroft OmniFocus 1 for Mac 7 2008-06-18 02:57 PM
rb-appscript examples Carl Bourne OmniPlan Extras 1 2008-03-05 04:33 PM


All times are GMT -8. The time now is 10:03 AM.


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