Errors on doubleClickData.item.is_dir for some objects

Hi Jon/Leo/Greg, the attached is a very simple event handler for OnDoubleClick...

vbTest.vbs.txt (1.13 KB)
It shows the following failures when trying to test doubleClickData.item.is_dir.

Computer: nothing
Drive: Objects: Object doesn't support this property or method: 'doubleClickData.item.is_dir' (0x800a01b6)
File Collections: ok
FTP: Object doesn't support this property or method: 'doubleClickData.item.is_dir' (0x800a01b6)
Libraries: Object doesn't support this property or method: 'doubleClickData.item.is_dir' (0x800a01b6)
Network: nothing
Recycle Bin: nothing
: ok

Is this something you can resolve so we're not throwing errors? I would say they should just return True for is_dir tests, unless you want to introduce some other Item property to represent special objects?

We'll get that fixed.

For now you could check if the doubleClickData.item (as a string) ends in ":" and assume it is a dir if it does, or use DOpus.FSUtil.GetType(doubleClickData.item,"a") or similar.

Thank man, for pointing me toward the alternatives. Works fine now...