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 Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Script error when re-arranging projects Thread Tools Search this Thread Display Modes
I've run into a number of strange bugs when calling OmniFocus with AppleScript. I'm working on some sort routines to organize projects alphabetically, and they work pretty well, except that I keep running into a bug when I try to move certain items to the end of their container. Here's an example:
tell application "OmniFocus" to tell document window 1 of document 1
set xT to tree 1 of library of sidebar
set xV to value of xT
set xC to container of xV
move xV to after last section of xC
end tell
I get an Apple Event Handler Failed when I run this script.

This does work, I think, outside of the root level of the library, but I can't say for sure that it does.

Also, is there any way to directly re-arrange trees? I'm having to walk back through value -> container, when it would be a lot easier to just go from the tree and re-arrange it.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Show active and on hold projects with script? mrubenson OmniFocus Extras 3 2012-01-04 11:01 AM
CopyLibraryResources script error SpiraMira Omni Frameworks 3 2010-09-10 09:45 PM
Join Projects class Otco error somedude OmniPlan Extras 9 2010-02-17 11:12 AM
Arranging Contexts alphabetically hhankk OmniFocus 1 for Mac 3 2009-11-25 12:14 PM
Re-arranging / balancing schedules gopi Applying OmniFocus 5 2009-08-09 12:22 PM

All times are GMT -8. The time now is 11:17 PM.

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