在Safari中打开网页并对特定区域进行屏幕截图(使用Cmd+Shift+4)的AppleScript。但我在让屏幕截图部分自动化时遇到了麻烦。
我使用MouseTools来点击和移动鼠标。
set x to POSIX file ((POSIX path of (path to me)) & "/.." & "/MouseTools") as text
set pathName to POSIX path of x
tell application "Safari" to activate
open location "