複数アートボードを持つaiファイルを配置

_UNI3757

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

pdfもできます。

ファインダーでファイルを選択後スクリプトを実行。

tell application “Finder” to set a1 to selection as alias list
set a0 to text returned of (display dialog ページ数を入力 default answer “2” with title “uni-factory”)
tell application “Adobe InDesign CS5”
set a4 to 0
repeat with a2 from 1 to a0
try
set properties of PDF place preferences to {page number:a2, PDF crop:crop art, transparent background:true}
tell document 1 to set a3 to place a1‘s item 1 on page 1 place point {a4, 0}
copy geometric bounds of a3‘s item 1 to {g1, g2, g3, g4}
set a4 to g4 + 5
on error
exit repeat
end try
end repeat
end tell