var Acrobat = Application ( "Adobe Acrobat Pro" ) ; var doc = Acrobat . documents ; var docLength = doc . length ; Acrobat . includeStandardAdditions = true ; Acrobat . displayAlert ( docLength . toString ( ) ) ;