Wednesday, November 21, 2012

Apple Script check particular file exists or not

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