The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Trigger AppleScript when task is complete (http://forums.omnigroup.com/showthread.php?t=10656)

tom friedhof 2008-11-20 07:01 AM

Trigger AppleScript when task is complete
 
Is it possible to have an AppleScript triggered when you mark a task as completed?

I'm running a timer on all my OmniFocus tasks in [URL="http://www.iggsoftware.com/ibiz/index.php"]iBiz[/URL] and would like to automatically have the timer for the current task I'm working on stop when I mark the corresponding task in OmniFocus as complete.

RobTrew 2008-11-20 07:31 AM

You would probably need a script which both marks the task as complete and does something else.

Assigning the script to a keystroke might ease the transition away from clicking the check-box to using your script.

tom friedhof 2008-11-20 08:00 AM

yeah, I was figuring that was the way I would probably have to handle this use case.

Although I think it would be cool to be able to bind applescripts to certain "events" much like how javascript works.

RobTrew 2008-11-20 10:35 AM

Yes - this is something which works better under VBA in Windows than under Applescript in OS X :-)

Ken Case 2008-11-21 04:24 AM

To be fair to AppleScript, it does have a notion of binding handlers to events much like JavaScript, but OmniFocus doesn't currently post an event when items are completed. (Posting such events has been on our list to consider for over a year and a half, but so are a lot of other things!)

ankushnarula 2009-03-09 07:52 AM

Is OF posting events yet? I'm new to AppleScript so I'm not clear on where to find this information.

curt.clifton 2009-03-09 05:20 PM

You would look in the AppleScript dictionary for OmniFocus. (See the File menu in Script Editor.)

Briefly, no posted events yet. But lots of nice progress in the 1.6 Sneaky Peeks, so hopefully posted events is moving up the features-to-be-added list.


All times are GMT -8. The time now is 12:55 PM.

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