パッケージ自動化

IMG_2311

スクリプトエディタで開く

ドキュメントと同一フォルダーに、上位フォルダー名でパッケージをします。

tell document 1 of application “Adobe InDesign CS5” to set a1 to file path as Unicode text

tell application “Finder” to set a2 to name of alias a1

tell current application to do shell script “mkdir -p ‘” & POSIX path of alias a1 & a2 & “/'”

set a3 to a1 & a2 & “:”

tell application “Adobe InDesign CS5”

save document 1

package document 1 to alias a3 with copying linked graphics, updating graphics, ignore preflight errors, copying fonts and including hidden layers without copying profiles and creating report

end tell