I'm trying to write an Applescript to run daily at 8am, which will bring OmniFocus to the front with the Due Soon perspective showing. However, this script activates OF but does not change the displayed perspective:
There is no error shown. Where am I going wrong?
tell application "OmniFocus" activate tell the default document to tell the front document window to set the perspective name to "Due Soon" end tell