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:

Code:
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.
and
Can't set «class FCvm» of «class FCdw» to "project"

Any thoughts ?

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

Code:
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 03: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 04:23 AM
Only Planning Mode View when opening? cemart OmniFocus 1 for Mac 1 2009-06-11 06:26 AM
RFC: Another way to view tasks in context mode Peeja OmniFocus 1 for Mac 6 2007-10-11 11:17 AM
Applescript, Presentation Mode & View bertie OmniGraffle General 0 2006-09-21 02:32 AM


All times are GMT -8. The time now is 06:57 PM.


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