2009-06-23 12 views
2

Quicktimeを使用してムービーのスナップショットを書き出しようとしています。これはスナップショットを行うコードです:applescript - 画像シーケンスへのquicktimeエクスポート問題

export document 1 to file target_file as image sequence using settings "JPEG, 10 fps" 

これは、画像をJPEGファイルではなくPNG形式で保存します。

export document 1 to file target_file as image sequence using settings preset "JPEG, 25 fps" 

それは、プリセットの設定で正常に動作します:

私は以下のコードを使用し

。しかし私のカスタム設定では、JPEGを作成することができませんでしたが、代わりにPNGを作成しました。

私はサポート文書を読もうとしていますが、何も見つかりませんでした。

ありがとうございました!

答えて

2

QuickTime Player辞書の設定では、設定を含むファイル(具体的には.qtesまたは.setファイル)が必要です。

次のAppleScriptを使用して、最近使用し画像シーケンスの設定を.qtesファイルを保存することができます:

set file2save to (choose file name default location (path to desktop) default name "setting.qtes") 

tell application "QuickTime Player" 
    tell first document 
     save export settings for image sequence to file2save 
    end tell 
end tell 

オリジナルソース:MacScripter

をそれがにコードを変更した後:

tell application "QuickTime Player" 
    #Change this path to wherever the .qtes file is 
    set settings_file to "Macintosh HD:setting.qtes" 
    export document 1 to file "prefix" as image sequence using settings alias settings_file 
end tell 

スクリプト内の "Macintosh HD"は、ボリュームの名前に変更することを忘れないでください。 qtesファイルがオンです - そうでなければ、.pngファイルを取得します。

+0

多くのありがとうございます! – Pradeep