var TextEdit = Application ( "TextEdit" ) ; var doc = TextEdit . Document ( ) ; TextEdit . documents . push ( doc ) ; doc . text = "JavaScript\nサンプル\nです。" ; doc . text . size = 24 ; doc . text . paragraphs [ 1 ] . size = 12 ;