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.] |
[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] |
Awesome! Thanks, Tim!
|
All times are GMT -8. The time now is 10:44 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.