From Xojo Documentation
| This method is only available on the macOS platform.
For cross-platform development, use ＃If...＃Endif with the Target... specifiers to make sure you will not attempt to use this method on an incompatible platform.
Creates a FolderItem from the passed FSRef.
This will only work on macOS. On Windows and Linux it raises a PlatformNotSupportedException.
For purposes of illustration, this example creates a FolderItem from an internaly-generated MemoryBlock that contains a user-selected mp4 file.
Dim g As New FolderItem
f = GetOpenFolderItem("video/mp4") // added using the File Types Editor
If f.MacFSRef <> Nil Then
g = f.CreateFromMacFSRef(f.MacFSRef)
MsgBox("The MacFSRef was not created.")