MAC relevance (I'm not an expert)

(imported topic written by jpeppers91)

Can someone help with relevance with a MAC? I need to get versions from these files and I’m not sure how to do this on a MAC?

/Library/PreferencePanes/CredentShield.PrefPane

/Applications/Trend Micro Security

/Library/Application Support/TrendMicro/common/lib/vsapi/lpt$vpn.* (the * is going to represent a number)

(imported comment written by SystemAdmin)

Try these:

bundle version of folder "/Library/PreferencePanes/CredentShield.PrefPane"
version of folder "/Applications/Trend Micro Security.app"

The last one I don’t know.

  • Aaron

(imported comment written by jpeppers91)

This didn’t work for me.

(imported comment written by jpeppers91)

Will this syntax work…

if exists file “CredentShield.PrefPane” of folder “/Library/PreferencePanes” then version of file “CredentShield.PrefPane” of folder “/Library/PreferencePanes” else nothing

(imported comment written by jpeppers91)

Anyone?

(imported comment written by SystemAdmin)

For an application the following should work:

version of folder “/Applications/MyApplication.app”

You can also get an application object, if its in /Applications or a user Applications directory, and get the version off that:

version of application “MyApplication.app”