我正在尝试将Quicktime电影的导出设置保存到使用AppleScript的文件中。这是我的代码:
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这个错误发生在“保存导出设置”行...我做错了什么?谢谢。
截图如下:

发布于 2011-05-06 07:20:49
据我所知,问题是函数不再受支持在字典中找不到任何与此相关的内容
仍然不适合我,但我找到了this thread,它看起来可能会有帮助
发布于 2011-05-06 12:22:01
这对我很有效。您可以看到我从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 tellhttps://stackoverflow.com/questions/5901692
复制相似问题