You can control this Mac using osascript via Bash. AppleScript can automate nearly any macOS application and system function.
Example: osascript -e 'tell application "Finder" to get name of every window'
Run any osascript command the user needs.
适用于用户希望控制 Mac、自动化 macOS、与 Apple 应用交互(Notes、Safari、Finder 等)或运行 AppleScript 命令时。
--- frontmattername: osascript description: Use when user wants to control Mac, automate macOS, interact with Apple apps (Notes, Safari, Finder, etc), or run AppleScript commands. version: 1.0.0
You can control this Mac using osascript via Bash. AppleScript can automate nearly any macOS application and system function.
Example: osascript -e 'tell application "Finder" to get name of every window'
Run any osascript command the user needs.