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

(DTPtechNote:1173) [AS-InDesign CS] 選択行のタブの移動


set tab_number to 1 --2番目以降のタブストップについて
set add_length to 11 --11pt×タブ個数づつ加算

tell application "InDesign CS_J"
	tell document 1
		set para_list to object reference of paragraphs of selection
		repeat with i in para_list
			set tab_list to tab stops of i
			set c to 1
			repeat with ii from tab_number to (length of tab_list)
				set obj to object reference of (item ii of tab_list)
				set tmp to position of obj
				set tmp to add_length * c + tmp
				set c to c + 1
				set position of obj to tmp
			end repeat
		end repeat
	end tell
end tell