PDA

View Full Version : Scripting new window creation


curt.clifton
06-28-2007, 09:57 AM
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:


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


Any ideas?

[Also reported through Send Feedback.]

Tim Wood
06-29-2007, 12:15 AM
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).


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):


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

curt.clifton
06-29-2007, 07:18 PM
Awesome! Thanks, Tim!