0%

MacOS 自动化 tricks

MacOS 自动化 tricks

AppleScript

SideCar

1
2
3
4
5
6
tell application "System Events"
tell process "SystemUIServer"
click (menu bar item 1 of menu bar 1 whose description contains "Displays")
click menu item "[YOUR iPAD HERE]" of menu 1 of result
end tell
end tell

from https://github.com/Jcowwell/Sidecar-Scripts

Click icon on the right side of menubar

1
2
3
4
5
6
7
8
tell application "System Events"
# focus(when full screen)
control down
# click actions
tell application "System Events" to tell process "[APP PROCESS NAME]"
click menu bar item 1 of menu bar 2
end tell
end tell

with Keyboard Maestro

Multi-displays

Chrome 关闭下方 download 栏

chrome