代码之家  ›  专栏  ›  技术社区  ›  Pradeep

appescript-快速导出图像序列问题

  •  2
  • Pradeep  · 技术社区  · 17 年前

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

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

    1 回复  |  直到 17 年前
        1
  •  2
  •   adamJLev    17 年前

    根据QuickTime Player字典进行设置需要一个文件(特别是 .qtes .set

    您可以保存最近使用的.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文件。