Anyway to refresh OmniFocus without quit?

Recently I’m trying to use the OmniFocus as a panel to control some scripts as well as some folders, everything works fine, but I find the changes to the database will not immediately show. So, any ideas to solve this? Or there might exists a better way to solve it in AppleScript which I don’t know?

Does Organize>Clean Up or ⌘K do what you want?