Reveal in Finder not working for Qspace

An interesting one!

Here is PopClip’s code that reveals the file/folder in Finder:

NSURL *standardizedURL=[[fileURL filePathURL] URLByStandardizingPath];
NSString *file=standardizedURL.path;
NSString *root=[standardizedURL URLByDeletingLastPathComponent].path;
if (standardizedURL.isReachableDirectoryOnlyURL) {
    // if directory, open directory directly
    file=nil;
    root=standardizedURL.path;
}
[[NSWorkspace sharedWorkspace] selectFile:file inFileViewerRootedAtPath:root];

Docs for that call:

/* Activate the Finder and open a window selecting the file at the given path. 
If fullPath is nil, this will instead open the directory specified by rootFullPath,
and not select any file.
If rootFullPath is the empty string (@""), the file is selected in the main viewer.
Otherwise, a new file viewer is opened.
 */
- (BOOL)selectFile:(nullable NSString *)fullPath inFileViewerRootedAtPath:(NSString *)rootFullPath;

This is a standard macOS API. I wonder what the Open command and Raycast are doing differently. If you or anyone has any insight please share. Meanwhile, I’ll note this on my tasks list for a deeper investigation.