【问题标题】:Choose from Illustrator PDF presets从 Illustrator PDF 预设中选择
【发布时间】:2017-10-04 17:28:09
【问题描述】:

我正在尝试找到一种创建对话框的方法,该对话框列出了可供选择的用户 Adob​​e illustrator PDF 预设。

这将被设置为将指定的文件保存为 PDF。我已经对脚本进行了全部排序,并且可以导出具有指定预设的文件,但希望能够选择使用哪个 PDF 预设。

感谢您的帮助。

【问题讨论】:

    标签: pdf applescript adobe-illustrator


    【解决方案1】:
    on open (Itemlist)
    tell application "Adobe Illustrator"
        set pdfPresets to PDF presets
    end tell
    set choosePDF to choose from list pdfPresets with prompt "Choose PDF preset:"
    tell application "Finder"
        repeat with thisItem in Itemlist
            tell application "Finder" to set this_folder to (the POSIX path of thisItem)
            tell application "Adobe Illustrator" to open thisItem
            tell application "Adobe Illustrator" to save current document in this_folder as pdf with options {class:PDF save options, PDF preset:choosePDF}
            tell application "Adobe Illustrator" to close current document
        end repeat
        tell application "Finder" to activate
    end tell
    end open
    

    想通了!发布给将来有同样问题的人。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-04-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-04
      • 1970-01-01
      相关资源
      最近更新 更多