The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Update problem when clearing flags (http://forums.omnigroup.com/showthread.php?t=16602)

curt.clifton 2010-06-26 09:36 PM

Update problem when clearing flags
 
The little script below clears every flag in the database. It works, but seems to expose a bug in OF's display code. To wit:

1. Switch to a project mode window.
2. Flag a project or single action list.
3. Run the script and choose "Yes" to clear flags.
4. All flags will be cleared in the database, but the project or SAL flagged in step 2 will still show a flag. Its children, however, will not show flags.
5. Switch to context mode, then back to project mode.
6. The flag will no longer appear on the project or SAL from step 2.

[Also submitted as feedback.]

[CODE]

try
set theResponse to display dialog "Really clear every flag in the OmniFocus database?" buttons {"Yes", "No"} default button "No" cancel button "No" with title "Clear Every Flag?" with icon caution
on error
return
end try
tell application "OmniFocus"

tell front document
set flagged of (every flattened task whose flagged is true) to false
end tell

end tell
[/CODE]

RobTrew 2010-06-27 01:36 PM

[QUOTE=curt.clifton;79261]The little script below clears every flag in the database. It works, but seems to expose a bug in OF's display code.[/QUOTE]

I remember a similar issue (perhaps related ?) involving the refreshing of the flagged icon on actionless projects.

[URL="http://forums.omnigroup.com/showthread.php?t=15293"]http://forums.omnigroup.com/showthread.php?t=15293[/URL]


All times are GMT -8. The time now is 07:56 PM.

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