views:

97

answers:

1

I am trying to write a program that requires to know if a window is being dragged (moved around). The catch is that it's not the program's window, but rather any window in the OS (eg. Safari, iTunes, Adium, TextMate, etc.), and what program it belongs to

I was thinking AppleScript would be a potential way to do this, but there doesn't seem to be anyway to know whether it's being dragged.

Any ideas?

A: 

On window will resize handler or window will move handler. I'm not sure if those are the exact names but you can find them in the Window section of the Applescript section in the inspect window in Interface Builder.

alexy13
I believe they only work for your own application's windows? Please correct me if I'm wrong.
Tom H