Skip to content

Instantly share code, notes, and snippets.

@jyxjjj
Last active January 7, 2026 02:18
Show Gist options
  • Select an option

  • Save jyxjjj/7266e8f565275990e0bfce279ac0d2a1 to your computer and use it in GitHub Desktop.

Select an option

Save jyxjjj/7266e8f565275990e0bfce279ac0d2a1 to your computer and use it in GitHub Desktop.
tell application "System Events"
tell process "Telegram"
repeat with w in windows
set size of w to {1024, 720}
delay 0.05
set position of w to {768, 360}
end repeat
end tell
tell process "QQ"
repeat with w in windows
set size of w to {1024, 720}
delay 0.05
set position of w to {768, 360}
end repeat
end tell
tell process "WeChat"
repeat with w in windows
set size of w to {1024, 720}
delay 0.05
set position of w to {768, 360}
end repeat
end tell
tell process "DingTalk"
repeat with w in windows
set size of w to {1400, 850}
delay 0.05
set position of w to {580, 295}
end repeat
end tell
tell process "Feishu"
repeat with w in windows
set size of w to {1400, 850}
delay 0.05
set position of w to {580, 295}
end repeat
end tell
tell process "Google Chrome"
repeat with w in windows
set size of w to {1600, 900}
delay 0.05
set position of w to {960, 180}
end repeat
end tell
tell process "PhpStorm"
repeat with w in windows
set size of w to {2560, 1350}
delay 0.05
set position of w to {0, 0}
end repeat
end tell
tell process "Code"
repeat with w in windows
set size of w to {1600, 900}
delay 0.05
set position of w to {960, 180}
end repeat
end tell
end tell
@jyxjjj
Copy link
Author

jyxjjj commented Jan 7, 2026

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment