Applescript QuickTime pro 保存导出设置
我正在尝试使用 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 出现错误:发生了 -2107 类型的错误。”号码-2107
此错误发生在“保存导出设置”行... 我做错了什么? 谢谢。
这是屏幕截图:
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:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
据我所知,问题是不再支持函数,在字典中找不到任何有关它的内容
仍然对我不起作用,但我发现此线程 看起来可能有帮助
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
这对我有用。您可以看到我从 Quicktime 获取了文档名称以确保其正确,因此您的问题在于文档名称。请注意,如果电影位于最前面,那么您还可以使用“讲述第一个文档”等术语。
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".