AppleScript in wrapped app

I have an app where I would like to place a smal window looking like an icon on the lower left corner of the screen. That is, if the dock is not wide enough to cover that area. Otherwise I will place it just above.

The only method I could find uses System Events to get the size of the dock. It is posted at http://j4mie.org/blog/how-to-get-the-dimensions-of-the-dock/ . So I guess I will have to forget that.

Unless there is a kosher way of getting the size of another running application current window, I see no real alternative but to come back to the first idea I had, which is to scan the screen on a small square from the left edge right-ways until I encounter the characteristic grey of the dock. It is not impossible, if cumbersome :wink: