[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(DTPtechNote:787) Re: セカンドノンブルのスクリプトについてです
>InDesign2.0.2を使用しているので
InDesign 2.02を使っているなら、こんな感じで。
set start_number to 1000
tell application "InDesign 2.0.2J"
--activate
tell document 1
tell view preferences
set old_ruler to ruler origin
set ruler origin to page origin
end tell
repeat with i from 1 to count pages
tell page i
set my_frame to make new text frame at front with properties {visible bounds:{50.0, 68.0, 100, 550}, contents:(start_number + i) as Unicode text, label:"second_number"}
tell paragraph 1 of my_frame
set properties to {font:font "小塚明朝 Std" of application "InDesign 2.0.2J", point size:30.0, justification:center}
end tell
end tell
end repeat
tell view preferences
set ruler origin to old_ruler
end tell
end tell
end tell