Hi, I am trying to get the number of tasks done today in applescript. This is my code:
This return zero even though it shouldn't. Can someone try this and let me know if it works for them or what's wrong with the code? If someone can help me out it would be great. Thank you.
Code:
set dateToday to current date tell application "OmniFocus" tell front document set tasksDoneToday to a reference to (flattened tasks where completion date is equal to dateToday) display dialog (count of tasksDoneToday) end tell end tell