The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus 1 for Mac (http://forums.omnigroup.com/forumdisplay.php?f=38)
-   -   Apple Script to finsh task and switch off recurrent (http://forums.omnigroup.com/showthread.php?t=30829)

Helmut Hauser 2013-09-26 10:46 AM

Apple Script to finsh task and switch off recurrent
 
Hi everybody,

I use recurrent task to work on some tasks on a daily basis (or every other day) to keep the momentum going. However, when I am really finished with it, I have to go into the inspector and switch off recurrence and then finish the task.

It would be great to have an Apple Script (or an other similar solution) that would do the same job (with just one shortcut).

Has anyone some suggestions?

Thank you for your help.

All the best,
Helmut

RobTrew 2013-09-26 11:05 AM

Perhaps something along these lines:

[CODE]tell application id "OFOC"
tell front document window of front document
tell content
set lstTask to value of selected trees where class of its value is task or class of its value is inbox task
repeat with oTask in lstTask
tell oTask to set {its repetition rule, completed} to {missing value, true}
end repeat
end tell
end tell
end tell[/CODE]


All times are GMT -8. The time now is 05:32 PM.

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