通过Quicktime Player使用Applescript选择特定的屏幕录制吗?

时间:2018-07-12 13:18:18

标签: macos applescript

我有这个简单的代码来记录quicktime播放器的屏幕活动。但是,如何更改它,因此如果我的Mac Pro连接了多个雷电,我可以选择要记录的特定屏幕

tell application "QuickTime Player"
    activate
    set newScreenRecording to new screen recording
    delay 1
    tell application "System Events"
        tell process "QuickTime Player"
            set frontmost to true
            key code 49
        end tell
    end tell
end tell
tell application "QuickTime Player"
    delay 1
    tell newScreenRecording
        start
    end tell
end tell
tell application "System Events" to tell process "SystemUIServer"
        click
        delay 1
        key code 53
end tell

0 个答案:

没有答案
相关问题