tell application "QuickTime Player"
activate
get [name, id] of video recording devices
end tell
{{missing value}, {missing value}}
This has forced me to do some crazy stuff with Maestro that seems risqué and unreliable.
Google has bunch of stuff that says the scripting of QuickTime is broken. I know I can use Accessibility Inspector to get the button and UI elements. Here is link to a discussion of this. https://stackoverflow.com/questions/29994416/set-a-camera-in-quicktime-using-applescript
Any advice or guidance would be greatly appreciated.