var AI = Application ( "Adobe Illustrator CC 2014" ) ; var doc = AI . documents [ 0 ] ; var text = doc . textFrames [ 0 ] . contents ( ) ; AI . includeStandardAdditions = true ; AI . displayAlert ( text ) ;