On Dec 10, 2004, at 23:01, Simon Dorfman wrote:
[ Finder ] I get this error: "The operation could not be completed. An unexpected error occurred (error code -10660)." If TextMate is already open, a double click on the file in the Finder opens fine. [...] I think it may have been caused by renaming the beta versions of TextMate to names like "TextMate1.01b3". Maybe the Finder got confused about which app was THE TextMate to open with. I now only have the newest 1.02 version in the Apps folder.
Try to delete the LS cache (requires admin privileges): /Library/Caches/com.apple.LaunchServices.*
90% of the time this seems to be what Finder uses to locate a program (and it does in my experience easily get “corrupted” if the same application shows up at different places or with different names).
After deleting it you should restart you machine, then navigate to the folder containing TextMate and start it (using the Finder).
There is also the following file: ~/Library/Preferences/com.apple.LaunchServices.plist
This contain file type -> application mapping, I do occasionally delete mine when I think something is wrong (also best to restart after doing this).