The Omni Group

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

Reply
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
  Reply With Quote
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 =)
__________________
VP of Software Development
  Reply With Quote
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
  Reply With Quote
Nevermind -- I got it:

Code:
set docTarget to make new ...
  Reply With Quote
Reply


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 06:03 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.