2011-05-05 112 views
0

我试图将Quicktime电影的导出设置保存为使用AppleScript的文件。这是我的代码:AppleScript QuickTime pro保存导出设置

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

回答

0

据我可以告诉的问题是,不再支持找不到

仍然不为我工作的字典关于它的任何功能但我发现this thread看起来可能有帮助

+0

确定吗?你有QuickTime Pro吗?我检查了字典,它在那里... – user635064 2011-05-06 00:11:18

+0

1'm不是100%确定我没有亲,但我不认为这很重要,但我可能是错的;当我运行你的代码时,我会得到同样的错误你可以为我打开字典的屏幕截图,这样我就可以看到你看到的是什么? – mcgrailm 2011-05-06 00:15:59

+0

谢谢你试图帮助我。我用截图更新了我的问题。 – user635064 2011-05-06 00:53:47

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 
+0

感谢您的回复。这对我不起作用。我仍然得到错误-2107。你正在运行什么版本的QuickTime 7?我在7.6.6。 – user635064 2011-05-06 05:33:21

+0

Quicktime 7.6.6。 MacOSX 10.6.7。请注意,电影必须是开放的,如果您通过名称引用它,请确保名称正确。你的错误代码的描述是:invalidAtomContainerErr,所以你可能会设置错误的导出选项。开始导出,并在开始后停止导出。然后再次尝试脚本。 – regulus6633 2011-05-06 13:34:39

+0

另一个想法是...它是一个快速电影你得到出口设置或其他东西? – regulus6633 2011-05-06 13:43:23