2017-10-04 9 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 

それがわかりました!将来同じことを求める人のために投稿されています。

関連する問題