Guest
2010-09-11, 06:26 AM
Well, storing and restoring perspectives should be easy, except that there seems to be a bug :-)
The
perspective name of window property, nominally readable and writable, turns out to be unreadable in the current build (r137984) :-(
Code:
tell application id "com.omnigroup.omnifocus"
set oDoc to front document
set oWin to front document window of oDoc
-- BUG: PERSPECTIVE NAME OF WINDOW
-- This is meant to be a read/write property, and
-- *writing* to the the property does work ...
set perspective name of oWin to "flagged"
-- but *reading* it does not ...
set strName to perspective name of oWin
-- (always yields missing value)
end tell
(Something for OF > Help Send Feedback)
--
Last edited by RobTrew; 2010-09-19 at 03:10 AM..
Reason: Suggested work-around deleted: only works in particular circumstances