Hello, I'm trying to open all .txt files with TextMate. In the finder, I select a .txt file, hit Control+i to get info. Then I select TextMate as the app to open it with, then I click "Change All". After clicking "Change All" TextMate disappears as the "Open With" app and is replaced by the text: "Not applicable". If I close the info box and double click on the .txt file, 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. But if TextMate is closed, it shows this error.
Does anyone know how to fix this?
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.
Any help much appreciated. Thanks.
Simon
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).
I've been having this problem too, and deleting the various LaunchServices caches and plists didn't seem to help me. I had a bunch of old TextMate betas sitting in the trash, though, so I emptied that too, and that seems to have made a difference. I also tried banging my head against the wall in frustration, so I can't rule out that it might have been that instead. But I suggest you try the trash-emptying first.
On Dec 10, 2004, at 5:01 PM, Simon Dorfman wrote:
Hello, I'm trying to open all .txt files with TextMate. In the finder, I select a .txt file, hit Control+i to get info. Then I select TextMate as the app to open it with, then I click "Change All". After clicking "Change All" TextMate disappears as the "Open With" app and is replaced by the text: "Not applicable". If I close the info box and double click on the .txt file, 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. But if TextMate is closed, it shows this error.
Does anyone know how to fix this?
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.
Any help much appreciated. Thanks.
Simon
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/mailman/listinfo/textmate
On 11-12-2004 23:25, otheraccount@verizon.net wrote:
I've been having this problem too, and deleting the various LaunchServices caches and plists didn't seem to help me. I had a bunch of old TextMate betas sitting in the trash, though, so I emptied that too, and that seems to have made a difference.
Yes, the launchservice remembers the applications in the trash and won't forget about them until it is emptied.
I also tried banging my head against the wall in frustration, so I can't rule out that it might have been that instead. But I suggest you try the trash-emptying first.
I don't know about the wall, but banging your head against the stress reduction kit always helps: http://www.elitesavers.com/stress.html
Jeroen.
On Dec 11, 2004, at 23:25, otheraccount@verizon.net wrote:
I've been having this problem too, and deleting the various LaunchServices caches and plists didn't seem to help me. I had a bunch of old TextMate betas sitting in the trash, though, so I emptied that too, and that seems to have made a difference. [...]
I've found that the best way to stay out of trouble is to always drag the new version to the folder with the old version, and let Finder replace the old version (instead of trashing it first).