Set "video recording device" in QuickTime Player X (QTPX) - error -1700
Hi,
*I try to switch between different cameras in QTPX using AppleScript, but so far I can only get the name of the current camera.* Manually I can switch between the "Built-in iSight" and the "Logitech Camera" using the drop down menu in QTPX.
Any suggestions how to do this with AppleScript?
Thanks!
tell application "QuickTime Player"
activate
new movie recording
tell document 0 to start
get current camera of document 0
end tell
RESULT: screen compression presets "Logitech Camera" of application "QuickTime Player"
---
tell application "QuickTime Player"
activate
new movie recording
tell document 0 to start
set current camera of document 0 to "Built-in iSight"
end tell
Result:
*error "QuickTime Player got an error: Can’t make \"Built-in iSight\" into type video recording device." number -1700 from "Built-in iSight" to video recording device*
*I try to switch between different cameras in QTPX using AppleScript, but so far I can only get the name of the current camera.* Manually I can switch between the "Built-in iSight" and the "Logitech Camera" using the drop down menu in QTPX.
Any suggestions how to do this with AppleScript?
Thanks!
tell application "QuickTime Player"
activate
new movie recording
tell document 0 to start
get current camera of document 0
end tell
RESULT: screen compression presets "Logitech Camera" of application "QuickTime Player"
---
tell application "QuickTime Player"
activate
new movie recording
tell document 0 to start
set current camera of document 0 to "Built-in iSight"
end tell
Result:
*error "QuickTime Player got an error: Can’t make \"Built-in iSight\" into type video recording device." number -1700 from "Built-in iSight" to video recording device*