Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

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*

Posted on Mar 30, 2010 5:05 AM

Reply
1 reply

Mar 30, 2010 3:14 PM in response to burkx

The issue actually looks like another bug in QuickTime Player. Maybe you might resort to [GUI scripting|http://www.macosxautomation.com/applescript/uiscripting/index.html]:

*tell application "QuickTime Player"*
activate
*new movie recording*
*tell application "System Events" to tell process "QuickTime Player"*
*click menu button 1 of window "Movie Recording"*
*delay 1*
*click menu item "Built-in iSight" of menu 1 of menu button 1 of window "Movie Recording"*
*delay 1*
*end tell*
*tell document 0 to start*
*end tell*

Hope it can help.

Set "video recording device" in QuickTime Player X (QTPX) - error -1700

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.