0
我试图找到一种创建对话框的方式,列出用户的Adobe Illustrator PDF预设可供选择。从Illustrator中选择PDF预设
然后这将被设置为保存指定的文件为PDF。我已经将脚本全部排序并且用于导出具有指定预设的文件,但是希望能够选择使用哪个PDF预设。
感谢您的任何帮助。
我试图找到一种创建对话框的方式,列出用户的Adobe Illustrator PDF预设可供选择。从Illustrator中选择PDF预设
然后这将被设置为保存指定的文件为PDF。我已经将脚本全部排序并且用于导出具有指定预设的文件,但是希望能够选择使用哪个PDF预设。
感谢您的任何帮助。
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
想通了!发布给任何人在未来要求相同。