AppleScriptでウィンドウ位置をずらす

買って間もないRetinaディスプレイが壊れた。
左はじが少し見れない状況。

AppleScriptAutomatorでウィンドウ位置を取得して右に50オフセットするスクリプトを書いてショートカット⌘+\を割り当てた。

でも、もしかしてMacのアプリケーションは前回の起動位置座標を覚えてくれてるのかも?

参考:http://sakuro.tumblr.com/post/15283952343

on run {input, parameters}
	
	tell application "System Events"
		set awindow to item 1 of (get name of processes whose frontmost is true)
		tell process awindow
			tell UI element 1 of window 1
				set p to position
				set s to size
			end tell
		end tell
		
		set position of first window of application process awindow to {50, item 2 of p}
	end tell
	
	return input
end run