The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Extras
FAQ Members List Calendar Search Today's Posts Mark Forums Read

View mode identifiers Thread Tools Search this Thread Display Modes
I have yet to learn the applescript trick with view mode identifiers.

I can get an existing view mode identifier, but have no luck with code like:

Tell application "Omnifocus"
    set oWin to document window
    tell oWin
        set foo to available view mode identifiers
        set selected view mode identifier to "project"
    end tell
end tell
which raises errors such as:
Can't get available view mode identifiers of document window.
Can't set «class FCvm» of «class FCdw» to "project"

Any thoughts ?

Last edited by RobTrew; 2007-09-29 at 10:37 AM..
Ah. This does work:

tell application "OmniFocus"
	set oWin to window 1
	set foo to available view mode identifiers of oWin
	set selected view mode identifier of oWin to "context"
end tell
The problem seems to lie in specifying a document window ...

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
View mode joshj OmniPlan General 1 2013-05-06 04:22 PM
How to show an item in one mode in the other mode? [A: View menu or "Switch" button] ckennedy OmniFocus 1 for Mac 4 2010-06-27 05:23 AM
Only Planning Mode View when opening? cemart OmniFocus 1 for Mac 1 2009-06-11 07:26 AM
RFC: Another way to view tasks in context mode Peeja OmniFocus 1 for Mac 6 2007-10-11 12:17 PM
Applescript, Presentation Mode & View bertie OmniGraffle General 0 2006-09-21 03:32 AM

All times are GMT -8. The time now is 12:04 AM.

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