Hey @nrightnour,
Okay, this can get complicated when an app doesn't make uniquely identifying windows simple.
For instance – I see nothing to easily discriminate between Keyboard Maestro Text windows.
Since I don't have Live I'm using KM text windows as a testbed.
Run this 2-3 times to create more than one window.
Display Keyboard Maestro Text Window.kmmacros (2.2 KB)
![](https://forum.keyboardmaestro.com/uploads/default/original/3X/f/f/ffc0a439edab456c87451dc946e2fa45d92691f3.png)
Then run this script to see how to move them:
tell application "System Events"
tell application process "Keyboard Maestro Engine"
set winCount to count of (windows whose subrole is "AXFloatingWindow")
repeat with winIndex from 1 to winCount
tell (window winIndex whose subrole is "AXFloatingWindow")
set position to {0, 23}
end tell
end repeat
end tell
end tell
Do yourself a favor and use Script Debugger to write your AppleScripts. If you don't buy it it will revert to its free Lite configuration after a demo period – and it still makes Apple's Script Editor.app look sick by comparison.
Do NOT write and test AppleScripts in Keyboard Maestro Execute an AppleScript actions. Use a proper development app to get it right and then move your script to a Keyboard Maestro action.
Keyboard Maestro text windows are identically named and have no ID numbers, so I've had to get creative to identify them and move them individually.
I hope the same technique can be employed with Live.
You'll have to play with your positioning parameters to get this to work with your app, but here's a basic tiling script for Keyboard Maestro text windows.
tell application "System Events"
tell application process "Keyboard Maestro Engine"
set winCount to count of (windows whose subrole is "AXFloatingWindow")
set tileWidth to 0
set tileIncrement to 400
repeat with winIndex from 1 to winCount
tell (window winIndex whose subrole is "AXFloatingWindow")
set size to {400, 200} --> ONLY for TESTING with Keyboard Maestro Text Windows
set position to {tileWidth, 23}
set tileWidth to tileWidth + tileIncrement
end tell
end repeat
end tell
end tell
HTH.
Feel free to ask me questions.
-Chris