View Single Post
Thus to restore a workspace with, for example, OO3 in the right-hand third of the screen, and DevonThink in the left-hand two thirds, you could use a batch of shell commands like this:
Code:
#!/bin/sh
open -a 'DEVONthink Pro'
osascript ~/Library/Scripts/PlaceWin.scpt 0 0  0.667 1 1
open -a 'omnioutliner professional'
osascript ~/Library/Scripts/PlaceWin.scpt 0 0  0.667 1 2
(The fifth argument is an index. Repeated calls with the same parameters make the script cycle through complementary screen-tiling rectangles. Index 1 gives the primary rectangle, Index 2 gives the first complementary tile. In this case the right-hand third of the screen, to fill the screen by complementing the left-hand two thirds.

Automatic cycling through complementary tiles makes it possible to fill the screen quickly using a small number of assigned keystrokes).

( Note that for this to work well you probably need to set your oo3 preference to OmniOutliner > Preferences > General > When OmniOutliner Starts Up > Create a new document )

A shell script like this can, of course, be assigned to a key-stroke using, for example, FastScripts or Keyboard Maestro.

--

Last edited by RobTrew; 2011-01-30 at 04:21 AM..