Wildcards. Do they exist in Relevance language?

Q:(version of it, name of it) of files of folders whose (name of it contains “FileMaker Pro”) of folders “FileMaker” of program files x32 folder(version of it, name of it) of files of folders whose (name of it contains “FileMaker Pro”) of folders “FileMaker” of program files x32 folder
E: The operator “program files x32 folder” is not defined.

Looks like you may have double pasted

try this

Q: (version of it, name of it) of files of folders whose (name of it contains “FileMaker Pro”) of folders “FileMaker” of program files x32 folder
A: 5.1.1.0, chartdir51.dll
A: 13.0.1.54899, DBEngine.dll
A: 10.1.0.7, DL100ACE.dll
A: 10.1.0.2, DL100AdobeXMP.dll
A: 10.1.0.15, DL100AGM.dll
A: 10.1.0.3, DL100ARE.dll
A: 10.1.0.3, DL100AXE8SharedExpat.dll
A: 10.1.0.2, DL100BIB.dll
A: 10.1.0.2, DL100BIBUtils.dll
A: 10.1.0.7, DL100CoolType.dll
A: 10.1.0.2, DL100JP2KLib.dll
A: 10.1.0.23, DL100PDFL.dll
A: 10.1.0.3, DL100PDFPort.dll
A: 1.3.0.1, DL100pdfsettings.dll
A: 10.0.1.5, DLI_PDFL100.dll
A: 13.0.1.194, FileMaker Pro.exe
E: Singular expression refers to nonexistent object.

Can we narrow-down to focus specifically on the EXE file?

Now try:

Q: versions of files whose (name of it = “FileMaker Pro.exe”) of folders whose (name of it contains “FileMaker Pro”) of folders “FileMaker” of program files x32 folder

This actually might be an issue that could be getting in the way. Why it is erroring is not helpful

Score!!!

Q: versions of files whose (name of it = "FileMaker Pro.exe") of folders whose (name of it contains "FileMaker Pro") of folders "FileMaker" of program files x32 folder
A: 13.0.1.194
T: 7.422 ms

Awesome! So, it all has to be plural even though we’re looking for a single object? Many thanks!

Stringing it all together produces relevance errors.

Q: if (name of operating system starts with "Win") then versions of files whose (name of it = "FileMaker Pro.exe") of folders whose (name of it contains "FileMaker Pro") of folders "FileMaker" of program files x32 folder then ("Installed") else ("Not Installed") else (if (name of operating system starts with "Mac") then (if (exists regapp "FileMaker Pro.app") then ("Installed") else ("Not Installed")) else ("Wrong OS"))
E: This expression could not be parsed.

Try this instead:

Q: if (windows of operating system) then (if (exists files whose (name of it = "FileMaker Pro.exe") of folders whose (name of it contains "FileMaker Pro") of folders "FileMaker" of program files x32 folder) then "Installed" else "Not Installed") else if (mac of operating system) then (if (exists regapp "FileMaker Pro.app") then "Installed" else "Not Installed") else "Wrong OS"

That works, but it only tells me whether or not it is installed. I need to know the version installed, Mac or PC.

Q: if (windows of operating system) then (if (exists files whose (name of it = "FileMaker Pro.exe") of folders whose (name of it contains "FileMaker Pro") of folders "FileMaker" of program files x32 folder) then "Installed" else "Not Installed") else if (mac of operating system) then (if (exists regapp "FileMaker Pro.app") then "Installed" else "Not Installed") else "Wrong OS"
A: Installed
T: 176.076 m

Ah, your original didn’t have that for the Mac. When you have

if (X) then (Y) else (Z) 

both Y and Z need to be the same type or it can’t resolve it.

Not exactly, but you should always use plural relevance unless you cannot for a very few specific reasons. If you use singular relevance, then there must be one and only one result. Using plural relevance means there can be 0 or more results. Using plural relevance removes the need for IF-THEN-ELSE in most cases because you don’t need to check if it exists first.

Now that you have the Windows side working, you need to get the Mac side working all by itself without including the Windows relevance. Only after you get the Mac side working correctly should they be combined into a single relevance statement.

I also think there are some issues with the way you are writing your IF-THEN-ELSE statements.

If it was a regapp on both platforms, then just this would have worked:

versions of (regapps "iTunes.app"; regapps "iTunes.exe")

That would be awesome if it worked, but it doesn’t. Sadly.

Hi there. DOes this still work? I am trying to o the following:
find files “*.log” of folder “c:\staging\bin\logs”