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

 
activate Perspectives Thread Tools Search this Thread Display Modes
Looks like the only thing you can do with perspectives from AS is print them.

I'm hoping that some day you can "activate" them.

-P
 
Perspective scripting is pretty clunky right now; that there is even a 'perspective' scripting class is relatively new. We'd like to do more, but it won't make it into 1.0.

One of the bits of cruft that is useful is that you can create new windows with a given perspective:

Code:
tell application "OmniFocus"
	tell default document
		make new document window with properties {perspective name:"To Go"}
	end tell
end tell
or change the perspective of an existing window:

Code:
tell application "OmniFocus"
	tell default document
		set perspective name of front document window to "To Do"
	end tell
end tell
The whole 'perspective name' business is a holdover from when we thought we'd not have time to add the 'perspective' scripting object at all, but that leaked in for the printing support. Really this should have been something like a 'current perspective' property on the window -- hopefully sometime in 1.x =)
__________________
CTO, The Omni Group
 
Is there any way to get a reference to the new window when using:

Code:
tell application "OmniFocus"
	tell default document
		make new document window with properties {perspective name:"To Go"}
	end tell
end tell
Thanks,
Eric

Last edited by umop; 2008-02-11 at 01:02 PM.. Reason: code tags
 
Nevermind -- I got it:

Code:
set docTarget to make new ...
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activate broken in 92632 curt.clifton OmniFocus Extras 18 2007-12-21 05:52 AM
Applescript - Activate Issue geoffbarrall OmniFocus Extras 2 2007-11-02 11:19 AM
Can't activate browser window / crash on launch neilio OmniWeb General 3 2006-08-17 07:55 PM
Window menu does not activate windows Ward OmniWeb Bug Reports 2 2006-05-13 06:26 PM
Clicking in-browser does not activate. danlurie OmniWeb Bug Reports 6 2006-04-14 11:08 AM


All times are GMT -8. The time now is 05:42 PM.


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