我有这个简单的代码来记录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