Hi all,
I use a lap top that is usually connected to a high-resolution external monitor. When I disconnect, usually things behave, but occasionally the windows of certain programs will end up way out off the screen.
Today I have a Thunderbird window that is far away (Mozilla apps are common victims/causes of this problem). Normally I would just quit and restart, but I don't trust it to save the draft of this important email.
Here are the facts: The window is way off to the left. There is no one-pixel still on my main monitor. If I use F11 to see all Thunderbird windows, they swish in from the left, but if I select one they swish out again. Ditto if I minimize and maximize again.
I found a applescript that is supposed to fix this. It doesn't work so I added the dialogs to debug it (I'm new to applescript -- how to I get it to just print messages?):
When I run the script, it correctly finds Thunderbird, and it knows that I have two windows open. For the bounds, it first prints out "-1121, 359, -119, 1118" (so, yeah, waaaay off the screen). After it is supposed to move it, it doesn't, and the dialog confirms that the bounds haven't changed.
How do I get my windows back?
Any help greatly appreciated.
I use a lap top that is usually connected to a high-resolution external monitor. When I disconnect, usually things behave, but occasionally the windows of certain programs will end up way out off the screen.
Today I have a Thunderbird window that is far away (Mozilla apps are common victims/causes of this problem). Normally I would just quit and restart, but I don't trust it to save the draft of this important email.
Here are the facts: The window is way off to the left. There is no one-pixel still on my main monitor. If I use F11 to see all Thunderbird windows, they swish in from the left, but if I select one they swish out again. Ditto if I minimize and maximize again.
I found a applescript that is supposed to fix this. It doesn't work so I added the dialogs to debug it (I'm new to applescript -- how to I get it to just print messages?):
Code:
tell application "Thunderbird"
repeat with i from 1 to (count of windows)
display dialog "window " & i
tell window i
set {x1, y1, x2, y2} to bounds
display dialog " " & x1 & " " & y1 & " " & x2 & " " & y2
set bounds to {0, 0, x2 - x1, y2 - y1}
set {x1, y1, x2, y2} to bounds
display dialog "" & x1 & " " & y1 & " " & x2 & " " & y2
end tell
end repeat
end tell
When I run the script, it correctly finds Thunderbird, and it knows that I have two windows open. For the bounds, it first prints out "-1121, 359, -119, 1118" (so, yeah, waaaay off the screen). After it is supposed to move it, it doesn't, and the dialog confirms that the bounds haven't changed.
How do I get my windows back?
Any help greatly appreciated.