Resize Windows To A Specific Size [Mac OS X]

Поділитися
Вставка
  • Опубліковано 8 січ 2014
  • This tutorial covers how to create a script to resize any window to a specific resolution.
    Contact information:
    Facebook - / nickw324photo
    Twitter - / nickw324
    UA-cam - / a11021085
    Instagram - / nickw324
    Deviantart - nickw324.deviantart.com/
    - Here is the Script. - Copy and paste this into the apple script editor.
    Original Script: www.labnol.org/software/resize...
    set theApp to "Google Chrome"
    set appHeight to 1080
    set appWidth to 1920
    tell application "Finder"
    set screenResolution to bounds of window of desktop
    end tell
    set screenWidth to item 3 of screenResolution
    set screenHeight to item 4 of screenResolution
    tell application theApp
    activate
    reopen
    set yAxis to (screenHeight - appHeight) / 2 as integer
    set xAxis to (screenWidth - appWidth) / 2 as integer
    set the bounds of the first window to {xAxis, yAxis, appWidth + xAxis, appHeight + yAxis}
    end tell
  • Наука та технологія

КОМЕНТАРІ •