When you drag and drop into the terminal MacOS quotes the path. you probably want to accept that as well When you drag and drop a File from Finder or any other app that exposes a file, the terminal will '/Quote/the/absolute path/wallet.dat' accept quoted paths in TUI.