29
loading...
This website collects cookies to deliver better user experience
tell application "QuickTime Player"
set newMovieRecording to new movie recording
tell newMovieRecording
set current camera of newMovieRecording to "Kevin's iPhone"
set current microphone of newMovieRecording to "Kevin's iPhone"
end tell
end tell
Can’t make "Kevin's iPhone" into type video recording device
. This would have made things much easier.on openInputMenu()
ignoring application responses
tell application "System Events" to tell process "QuickTime Player"
click button 2 of window 1
delay 1
end tell
end ignoring
do shell script "killall 'System Events'"
end openDeviceMenu
System Events
, which ends up forcing the script to continue execution to future actions. I’ll be honest, I’m not 100% on the specifics but it worked – the menu opens and the selections are made in just over a second now.