1. AppleScript 截取当前窗口脚本
tell application "System Events"
  key down command
  keystroke "$"
  key up command
  keystroke space
  keystroke (ASCII character 53)
end tell
  1. 最小化窗口(不兼容Chrome浏览器)
tell application "Safari" to set miniaturized of every window to true
  1. 点击最小化
tell application "System Events"                                                             
   tell process "Google Chrome"                                                                  
      click button 1 of window 1                                                            
   end tell
end tell
  1. 最下化
tell application "Google Chrome"
   reopen -- unminimizes the first minimized window or makes a new default window
   activate -- makes the app frontmost
end tell
  1. .

极致极简
97 声望8 粉丝

极致极简


引用和评论

0 条评论