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

알아 냈어! 미래에 같은 것을 묻는 사람들을 위해 게시 됨.