var Finder = Application ( "Finder" ) ; var selection = [ ] . slice . call ( Finder . selection ( ) ) ; selection . map ( function ( item ) { var flag = item . locked ( ) ; var appName = item . displayedName ( ) ; Finder . includeStandardAdditions = true ; Finder . displayAlert ( appName + " : " + flag . toString ( ) ) ; } ) ;