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

(DTPtechNote:1118) Re: 「フィルタ参照形式によるオブジェクトの抽出」と「文字コード」の関係



set swatchName to (do shell script "cat ~/test.txt") as Unicode text
-- ~/test.txtは実在するスォッチ名が1行書いてあるだけ

tell application "InDesign CS_J"
	tell document 1
		set mycolors to every color
		repeat with i in mycolors
			if (name of object reference of i) as Unicode text = swatchName then set aColor to object reference of i
		end repeat
		get aColor
	end tell
end tell