I have gotten this error when trying to delete or affect an invisible file before. Temporarily turning the file visible usually, in my experience, changes the error to a dialog that asks if you are sure you would like to change the file.
I figure you have probably already come across this command, but for completeness, here is the explanation:
To make invisible files visible, enter this code in terminal:
defaults write com.apple.finder AppleShowAllFiles TRUE && killall Finder
and to make invisible files invisible again:
defaults write com.apple.finder AppleShowAllFiles FALSE && killall Finder
Note that this does close finder, so make sure you don't have any important folders open. I believe that it opens previously opened windows, but the back button doesn't work in my experience.
This is OSX's command to change defaults, apple's low-level preference system.
This tells defaults you want to change a preference, or write it
This tells defaults that the application's preferences you want to change is Finder, specified by the application's bundle identifier.
This specifies which preference you want to change within the application.
This is the value you want to set the preference to. In this case, it is a boolean, so the values must be
FALSE. I think you might be able to use
NO, but I'm not sure.
This is a terminal operator to run whatever's after this if the previous command is successful
I don't know much about this, but it kills processes or closes applications
Specifies which process or application to close.