var Finder = Application ( "Finder" ) ; var selection = [ ] . slice . call ( Finder . selection ( ) ) ; selection . map ( function ( item ) { var appName = item . name ( ) ; Finder . includeStandardAdditions = true ; Finder . displayAlert ( appName ) ; } ) ;