Applescript QuickTime pro save export settings
I am trying to save export setting of Quicktime movie to a file using AppleScript. This is my code:
set file2save to (choose开发者_开发百科 file name default location (path to desktop) default name "setting.qtes")
tell application "QuickTime Player 7"
tell document "video.mov"
save export settings for QuickTime movie to file2save
end tell
end tell
But I get error "QuickTime Player 7 got an error: An error of type -2107 has occurred." number -2107
This error occurs on the "save export settings" line...
What am I doing wrong?
Thanks.
Here's the screenshot:
as far as I can tell the problem is that functions is no longer supported can't find anything regarding it in the dictionary
still wasn't working for me but I foundthis thread which looks like it may help
This works for me. You can see that I got the doc name from Quicktime to make sure it was correct, so your problem is with the document name. Note that if the movie is frontmost then you can also use terms like "tell first document".
set file2save to (choose file name default location (path to desktop) default name "setting.qtes")
tell application "QuickTime Player 7"
set docName to name of first document
tell document docName
save export settings for QuickTime movie to file2save
end tell
end tell
精彩评论