LoginSignup
1
1

More than 5 years have passed since last update.

OS X で任意のアプリケーションのウィンドウの座標・サイズを設定する

Posted at

ウィンドウ左上の座標を (start_x, start_y) 、右下を (end_x, end_y) とすると

tell application <Application Name> to set the bounds of the front window to {start_x, start_y, end_x, end_y}

という感じ。

例えば、Safari を (30, 30) の位置からサイズ 1920*1080 にするには

tell application "Safari" to set the bounds of the front window to {30, 30, 1950, 1110}
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1