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

(DTPtechNote:1112) [AS_InDesign CS] オブジェクトのrepeat with in {objects}



InDesign CSでオブジェクトをrepeat with in {objects}で回すととなんでかしらないけど、同じオブジェクトを返しつづける(笑)
知らなかったのかよ>おれ(^^;;;;; 

set tmp to {}
tell application "InDesign CS_J"
	tell document 1
		repeat with i in every text frame
			set tmp to tmp & i
		end repeat
	end tell
end tell


まあこうすればいいんだけど、いやんな感じ。

set tmp to {}
tell application "InDesign CS_J"
	tell document 1
		set mytextframes to every text frame
		repeat with i in mytextframes
			set tmp to tmp & i
		end repeat
	end tell
end tell