From Xojo Documentation
Property (As FolderItem )
| This property is only available on the macOS platform.
For cross-platform compatibility, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform.
A FolderItem being passed as a parameter in the AppleEventRecord.