2017-10-04 95 views
0

我試圖找到一種創建對話框的方式,列出用戶的Adobe Illustrator PDF預設可供選擇。從Illustrator中選擇PDF預設

然後這將被設置爲保存指定的文件爲PDF。我已經將腳本全部排序並且用於導出具有指定預設的文件,但是希望能夠選擇使用哪個PDF預設。

感謝您的任何幫助。

回答

0
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 

想通了!發佈給任何人在未來要求相同。

相關問題