Applescript QuickTime pro保存导出设置

时间:2011-05-05 17:18:18

标签: macos export applescript quicktime

我正在尝试使用AppleScript将Quicktime影片的导出设置保存到文件中。这是我的代码:

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

但我收到错误"QuickTime Player 7 got an error: An error of type -2107 has occurred." number -2107 “保存导出设置”行中出现此错误... 我究竟做错了什么? 感谢。

这是截图: enter image description here

2 个答案:

答案 0 :(得分:0)

据我所知,问题是不再支持函数在字典中找不到任何关于它的内容

仍然没有为我工作,但我发现this thread看起来可能有帮助

答案 1 :(得分:0)

这对我有用。您可以看到我从Quicktime获取了文档名称以确保它是正确的,因此您的问题在于文档名称。请注意,如果电影位于最前面,那么您还可以使用“告诉第一个文档”这样的术语。

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
相关问题