use framework "Foundation"
use scripting additions
tell application "Finder"
exists POSIX file "/Users/shane/Desktop/Testing.png"
exists alias "Macintosh HD:Users:shane:Desktop:Testing.png"
exists file "Macintosh HD:Users:shane:Desktop:Testing.png"
Which returns:
exists current application
--> false
exists current application
--> false
exists file "Macintosh HD:Users:shane:Desktop:Testing.png"
--> true
For some reason, there's a problem resolving POSIX file and alias references.
There are a couple of workarounds:
exists (get POSIX file "/Users/shane/Desktop/Testing.png")
exists "/Users/shane/Desktop/Testing.png" as POSIX file
But I'm not really sure why they're needed. I'm not seeing the same problem in System Events, but I haven't tried any other apps. It's a common problem in Xcode-based apps, but I haven't noticed it in standard AppleScript before.
Curious...