[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(DTPtechNote:421) Re: 段落罫線について



前略

>				repeat with i from 1 to count paragraphs
>					tell paragraph i
>						my move_para(i)
>						set end of tmp_color to name of color of rule below
>					end tell
>				end repeat
後略
>to move_para(i)
>	tell application "QuarkXPress 3.3Jr7"
>		set selection to insertion point before paragraph i of current box of document 1
>	end tell
>end move_para

お好みだとも思うのですが、サブルーチンに渡すのは数より、
どっちかというと、object referenceで渡した方が確実かと。

tell paragraph i
my move_para(object reference)
end tell

to move_para(p)
	tell application "*2QuarkXPress召 to set selection to insertion point before p
end move_para

、゜、ソ、、、ハエカ、ク、ヌ。」