The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniFocus Extras (http://forums.omnigroup.com/forumdisplay.php?f=44)
-   -   Scripting new window creation (http://forums.omnigroup.com/showthread.php?t=3983)

curt.clifton 2007-06-28 08:57 AM

Scripting new window creation
 
I'm working on a script to replace the current front window with two windows, one above the other, occupying the same area. This layout is useful for inbox processing. I can display my inbox in the top window and individual projects in the bottom window.

I would like to open a new document window from the script but can't find the right incantation (or else the scripting for this is broken).

Here's what I think should work:

[CODE]
tell application "OmniFocus"
tell front document
make new document window at before front document window ¬
with properties {document:it}
end tell
end tell
[/CODE]

Any ideas?

[Also reported through Send Feedback.]

Tim Wood 2007-06-28 11:15 PM

[QUOTE=curt.clifton]
I would like to open a new document window from the script but can't find the right incantation (or else the scripting for this is broken).
[/QUOTE]

That'd be option two =)

This was scheduled for public beta, but I've bumped it up and it should appear in 88489.

This works for me (including showing how to set up the initial window shape, since you mentioned you wanted to put the window at a specific spot):

[code]
tell application "OmniFocus"
tell front document
make new document window with properties {bounds:{0, 0, 500, 500}}
end tell
end tell
[/code]

curt.clifton 2007-06-29 06:18 PM

Awesome! Thanks, Tim!


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

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