Finding out if a Window is being Dragged
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?
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.
精彩评论