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

(DTPtechNote:993) [AS Illustrator CS] とりあえず文字種置換してみます



あっちことをこっちで^^
とりあえず文字種置換してみます。


tell application "Illustrator CS"
	tell document 1
		tell text frame 1
			set str to contents
			set str to do shell script "echo " & quoted form of str & " | ruby -Ku -p -e 'require \"jcode\"; $_.tr!(\"0-9A-Za-z\", \"0-9A-Za-z\")'"
			set contents to str
		end tell
	end tell
end tell