Why modification time does not work with whose?

I wrote a relevance expression like “(exísts folder x) whose (now - modification time of it < 15minute)" and I got an error “operator modification time” is not recognised. When I reformulated it as "(exists folder x) and (now - modification time of folder x < 15minute)” it works. Why? Why “modification time” does not work inside “whose” clause?

It does

.... whose (modification time of it > now - 15 * minute)

Your original relevance should work,but you need to adjust your formatting slightly. try this:

Q: exists folder "C:\__Temp" whose (now - modification time of it < 15*minute) 
A: False

The mistake you are making here is when you wrap your entire ‘exists folder x’ statement in brackets, you are taking the entire statement within the bracket as the ‘it’. What you want is the time property applied to the ‘folder x’ as the ‘it’ for the whose statement.

does that make sense?

The fixlet debugger helps you identify this if you place your marker after the ‘it’ - the subject of the ‘it’ is then highlighted. See the difference below in the fixlet debugger with the two different statements:

3 Likes