Look For A File On A Mac

(imported topic written by SystemAdmin)

Is there a way to look for a specific file on a Mac 10.4 - 10.5

This is what I’ve been playing with

exists file “Install Date.txt” of client folder of current site

This look like it check the whole folder. I only want one folder checked. For example

exists file “Install Date.txt” of //Library/BESAgent/ of current site

But this gives me errors

(imported comment written by SystemAdmin)

I don’t have a mac handy to test on, but I’d guess that the relevance would be something like:

exists file “Install Date.txt” of folder “/Library/BESAgent”

(imported comment written by NoahSalzman)

Yes.

Q: exists file “version.plist” of folder “/Library/BESAgent/BESAgent.app/Contents/”

A: True

T: 75289331

(imported comment written by SystemAdmin)

Shouldn’t this work on Mac OS X?

exists file “Time Machine.app” of folder “/Applications/”

(imported comment written by NoahSalzman)

Mac OS X .app files are usually (always?) folders. So this will work:

exists folder “Time Machine.app” of applications folder

However, BigFix is aware of applications. So, it is probably better to do one of the following:

exists application “Time Machine.app”

exists application whose (name of it = “Time Machine.app”) of applications folder