Checking for existence of hidden files in AppleScript I can check to see if a file exists using AppleScript. But I am having trouble with hidden files. Is there a special way to do this?

set home_path to (path to home folder as text)
set hiddenFile to home_path &amp; ".test"

tell application "Finder"
    if not (exists file hiddenFile) then
        display dialog ".test does not exist."
    end if
end tell
Replace Finder with System Events:

set home_path to (path to home folder as text)
set hiddenFile to home_path &amp; ".test"

tell application "System Events"
    if exists file hiddenFile then
        display dialog ".test does exist."
    else
        display dialog ".test does not exist."
    end if
end tell


and it works.