Greetings list members,
Does anyone have any applescripts or information on enabling tiling and cascading TextMate windows? I'm hoping to find someone on this list who has a simple expedient or barring that finding out that it isnt currently possible. Then take it from there. Thanks all~
~James
On 2008-March-18 , at 18:08 , jamesr wrote:
Greetings list members,
Does anyone have any applescripts or information on enabling tiling and cascading TextMate windows? I'm hoping to find someone on this list who has a simple expedient or barring that finding out that it isnt currently possible. Then take it from there. Thanks all~
http://www.macosxhints.com/article.php?story=20050519021838783&query=cas... http://www.macosxhints.com/article.php?story=2006122713210062&query=tile http://www.macosxhints.com/comment.php?mode=view&cid=96187&query=til...
hope that helps
JiHO --- http://jo.irisson.free.fr/
On Mar 18, 2008, at 10:08 AM, jamesr wrote:
Does anyone have any applescripts or information on enabling tiling and cascading TextMate windows? I'm hoping to find someone on this list who has a simple expedient or barring that finding out that it isnt currently possible. Then take it from there. Thanks all~
If you hold the option key, the Window menu gives you "Arrange in front". I find this is great for collecting all application windows scattered across my spaces.
--Andrew
On Tue, Mar 18, 2008 at 1:08 PM, jamesr circlecycle@gmail.com wrote:
Greetings list members,
Does anyone have any applescripts or information on enabling tiling
and cascading TextMate windows? I'm hoping to find someone on this list who has a simple expedient or barring that finding out that it isnt currently possible. Then take it from there. Thanks all~
This should get you started:
"Arrange Windows 2 Horizontal" - create a new command in the Bundle Editor, Save Nothing, Input None, Output Discard, Command(s): --snip-- osascript -e ' tell application "Finder" set _b to bounds of window of desktop set _width to item 3 of _b set _height to item 4 of _b end tell tell application "TextMate" set bounds of window 1 to {1, 0, _width / 2, _height} set bounds of window 2 to {_width / 2 + 1, 0, _width, _height} end tell ' &>/dev/null & --snip--
"Arrange Windows 3 Horizontal" - as above, but for Command(s): --snip-- osascript -e ' tell application "Finder" set _b to bounds of window of desktop set _width to item 3 of _b set _height to item 4 of _b end tell tell application "TextMate" set bounds of window 1 to {1, 0, _width / 3, _height} set bounds of window 2 to {_width / 3, 0, _width / 3 * 2, _height} set bounds of window 3 to {_width / 3 * 2, 0, _width, _height} end tell ' &>/dev/null & --snip--
"Arrange Windows 2 Vertical" - as above, but for Command(s): --snip-- osascript -e ' tell application "Finder" set _b to bounds of window of desktop set _width to item 3 of _b set _height to item 4 of _b end tell tell application "TextMate" set bounds of window 1 to {1, _height / 2, _width, _height} set bounds of window 2 to {1, 0, _width, _height / 2} end tell ' &>/dev/null & --snip--
You get the idea. These don't account for the dock.
j.