Getting osascript to work with iPhone and QuickTime Player

Viewed 1088

I run this script and applescript can detect the devices just fine

tell application "QuickTime Player"
    video recording devices
end tell

It gives a the reply below

{screen compression preset "FaceTime HD Camera" of application "QuickTime Player", screen compression preset "Gangzheng's iPhone" of application "QuickTime Player"}

But when I run my actual script

tell application "QuickTime Player"
    video recording devices
    set newMovieRecording to new movie recording
    tell newMovieRecording
        set current camera of newMovieRecording to "Gangzheng's iPhone"
        set current microphone of newMovieRecording to "Gangzheng's iPhone"
        start
    end tell
end tell

it says QuickTime Player got an error: Can’t make "Gangzheng's iPhone" into type video recording device.

Is there a way to make applescript record anything from iPhone?

3 Answers
Related