For some reason, opening a folder in the Finder from the command line with
open path/to/folder
does not work anymore for subdirectories of my Documents folder:
% cd
% mkdir Documents/TestDir
% open Documents/TestDir
opens a new Finder window, but that does not show the “TestDir” folder but the “Computer” folder.
The system log shows these error messages about “untranslocated nodes”:
% log stream --predicate 'process == "Finder" and messageType == error'
Filtering the log data using "process == "Finder" AND logType == 16"
Timestamp Thread Type Activity PID TTL
2022-04-10 14:07:42.994683+0200 0xb6f5 Error 0x0 444 0 Finder: (LaunchServices) [com.apple.launchservices:default] capability properties: could not find untranslocated node for <FSNode 0x6000035b9aa0> { isDir = ?, path = <private> }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
2022-04-10 14:07:42.994777+0200 0xb6f5 Error 0x0 444 0 Finder: (LaunchServices) [com.apple.launchservices:default] capability properties: could not find untranslocated node for <FSNode 0x6000035b9aa0> { isDir = ?, path = <private> }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
2022-04-10 14:07:43.003949+0200 0xb6f5 Error 0x0 444 0 Finder: (LaunchServices) [com.apple.launchservices:default] capability properties: could not find untranslocated node for <FSNode 0x60000358d0c0> { isDir = ?, path = <private> }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
2022-04-10 14:07:43.004319+0200 0xb6f5 Error 0x0 444 0 Finder: (LaunchServices) [com.apple.launchservices:default] capability properties: could not find untranslocated node for <FSNode 0x60000358d0c0> { isDir = ?, path = <private> }, proceeding on the assumption it is not translocated: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
Running First Aid on Macintosh HD (in Recovery mode) did not report any errors.
The problem occurs only with (nested) subdirectories of “Documents”. Opening “Documents” itself or any other folder works correctly.
Sometimes it works if I specify the "-R" flag explicitly, e.g.
% open -R Documents/TestDir
but not always.
My configuration: macOS 12.3.1 on a MacBook Air (Retina, 13-inch, 2020).
Any ideas how to fix (or further investigate) this problem are welcome.
open
and Finder'sGo to Folder
. I will do a Feedback to Apple.