Я пытаюсь сделать AppleScript, который делает снимок, сделав снимок экрана photoBooth.Тем не менее, я не могу установить окно в один.Вот мой код:
tell application "Photo Booth"
activate
set volume output volume 0
tell application "Finder" to set visible of process "Photo Booth" to false
set windowid to id of window 1 of application "Photo Booth"
do shell script "screencapture -l" & windowid & " ~/test.png"
tell application "Photo Booth"
end tell
delay 0
quit
конец сказать