IllustratorでVBS

しばらく家ではIllustratorVBScriptを書いているのでPythonは一旦休止。
といっても1ヶ月くらいで再開するけど・・・w

とりあえず長い間なぞの動作をしていたTextFramesからTextFrameを取得すると、取得できない(処理から飛ばされる)TextFrameが存在するバグの回避策が分かりました。
:例

For Each oTxt in oLayer.TextFrames
	If oTxt.Contents <> "" Then
	flag = true
	for each t in colTxtFrames
		if t.Contents = oTxt.Contents then
			flag = false
		end if
	next
	if flag then
		Redim Preserve colTxtFrames(i)
			Set colTxtFrames(i) = oTxt
			i = i + 1
	end if
	End If
Next

といった感じで配列に一度テキストフレームを全て入れてから(内容が同じのを引っ張ってくることがあるので、内容が同じだったらいらないってする)、外でその配列をもう一回Forで回して例えばOutlineにするとか・・・・。