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

 
Scripting repetition interval Thread Tools Search this Thread Display Modes
[New user, and working on importing from Mori. Still going uphill, for now.]

The 'repetition' property of a project or task is a record:

Code:
repetition:{unit:day, fixed:true, steps:11}
There are links to 'repetition interval' in the dictionary, but there's no definition.

I'm unsure about 'fixed'. I think it controls whether the next repeat is calculated from the current value (true=fixed interval - hard recur), or from the completion date (false=not fixed - soft recur).
Correct?

I'm still confused about what this does to the popup in the Inspector's repetition panel. Only 'start again' and 'due again' can have the "from completion" qualifier, but there seems to be no way to control the popup from a script. It appears to always go to 'due again'.
Bit of a bother, as my repeating tasks are mostly of the 'start again' variety.
Is there, maybe, a workaround?
 
Fixed=true : "repeat every ..."
Fixed=false : "Start/Due Again ... after completion"

Unless I am missing something, the applescript library doesn't seem to give us access to the Start again vs Due again distinction ...

(Which is readable in the Sqlite cache, as in the example below)
  • "~1(s)w" for Start Again in one week, versus
  • "~1w" for Due Again in one week, and
  • "@1w" for Repeat every week.

--

Last edited by RobTrew; 2010-12-07 at 08:56 AM..
 
Quote:
Fixed=true : "repeat every ..."
Fixed=false : "Start/Due Again ... after completion"

Unless I am missing something, the applescript library doesn't seem to give us access to the Start again vs Due again distinction ...
Ah. Confirmed.
Quote:
(Which is readable in the Sqlite cache, as in the example below)
  • "~1(s)w" for Start Again in one week, versus
  • "~1w" for Due Again in one week, and
  • "@1w" for Repeat every week.
Mmm. Readable is good. Settable is better. Feature request?

I think I'll have the script set the flag on repeating tasks when importing, so I'll know which ones to visit afterwards.

Thanks, Rob.
 
Quote:
Originally Posted by teobaldo View Post
Feature request?
I think it would be worth signalling through:
OmniFocus > Help > Send Feedback ...
that there is a gap in Applescript access to Action and Project repetition intervals - the choice between:
Start again [N intervals] after completion,
and
Due again [N intervals] after completion,
Can be read through the Sqlite cache, but is neither readable nor writable through applescript.

--
 
Just wanted to let folks know that I filed a bug on this in response to the email that Rob submitted. :-)
 
You people are great!
 
In addition, review interval is also a repetition interval. But the 'fixed' property is meaningless here: this is always a fixed interval - at least, it is shown as such in the Inspector.
 
I am confused so how would you set an action to not repeat if it was already set to repeat?

Code:
tell application "OmniFocus"
Fixed=false 
Start/Due Again 0 after completion
end tell
I am trying to run a script that marks an action as in progress by duplicating the action. Actions that repeat end up showing up twice as a result of the repeat so I am hoping to turn off that off on the action when running the script.
 
Not an actual answer, but you could ask a non-repeating action for its properties, and look for 'repetition interval' to find out how to set this.
Worst case: there isn't one, and you'll have to create the duplicate as a new task, using the properties of the original minus the interval.

Last edited by teobaldo; 2011-07-26 at 12:12 AM..
 
Ah, yes. For a non-repeating task, it's repetition:missing value.
So just duplicate the task, then set its repetition to missing value
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
OmniSync syncing interval FatalError OmniFocus 1 for Mac 2 2012-07-10 05:16 AM
Changing default Review Interval globally Colums OmniFocus for iPad 2 2012-03-08 10:38 PM
sync interval OF desktop amelchi OmniFocus Syncing 3 2010-12-24 09:15 AM
Default review interval preferences not sticking Toadling OmniFocus 1 for Mac 7 2008-10-24 09:33 PM
Showing completed actions for set interval? kongjie OmniFocus 1 for Mac 8 2007-07-31 01:50 PM


All times are GMT -8. The time now is 11:32 AM.


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