Skip to content

Instantly share code, notes, and snippets.

@firexcy
Created September 20, 2020 10:48
Show Gist options
  • Save firexcy/75b0fdba4e734f5deb7d3d91c855a9e0 to your computer and use it in GitHub Desktop.
Save firexcy/75b0fdba4e734f5deb7d3d91c855a9e0 to your computer and use it in GitHub Desktop.
set gutter to 10
set sidebarWidth to 330
set wcMinHeight to 500
set wcMinWidthSansSB to 500
tell application "Finder"
set scrRes to bounds of window of desktop
end tell
tell application "WeChat"
set resX to item 3 of scrRes
set resY to item 4 of scrRes
tell front window
set bounds to { resX - sidebarWidth, resY - gutter - wcMinHeight, resX + wcMinWidthSansSB, resY - gutter }
end tell
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment