Following code helps you for finding particular file using apple script.
set msg to "no"
tell application "Finder"
if exists POSIX file "/usr/lib/libc++.dylib" then
set msg to "yes"
end if
end tell
display dialog msg