Friday, March 25, 2011

AppleScript 에서 file exists 여부 파악하기

set msg to "no"
tell application "Finder" to if exists "/usr/bin/gzip" as POSIX file then set msg to "yes"
display dialog msg

출처 : Check if file exists

No comments:

Post a Comment