PDA

View Full Version : Resetting the File Mappings


torrent
02-05-2002, 04:04 PM
Okay, I somehow messed up the system. The internet file mappings are ALL messed up. .sit files are trying to be opened with omniweb!

Somehow I need to reset them to factory defaults! Anyone know where to find the internet file mappings.... They used to be in the Internet Control Panel but they aren't there under X!

And everything was going so well! not a crash in ages and not a problem to speak of till I installed omniweb!

cybergoober
02-05-2002, 04:21 PM
Find a .sit. Do a Show Info (CMD+I). From the drop-down select "Open with application". Click on the box next to the application that's supposed to open the file. Select Stuffit Expander. If Stuffit isn't listed select "other…" and navigate to /Applications/Utilities and select Stuffit Expander. You can then click on the "Change All…" button and it will ask if you're sure that you want all .sits to open with Stuffit Expander.

There might be another way, but this usually works for me (pdfs always wanted to open with Preview instead of Acrobat Reader until I did this).

maclaw
02-05-2002, 10:18 PM
To clear all of the ones you have set, you can try deleting the preference from your home library. I believe the file is ~/Library/LSClaimedTypes. But it could be one of the other LS files. Problem is, I have found that the default that is recreated can often be mapped even worse than what you already have. (e.g. my dmg files kept defaulting to excel)

Novajo
02-06-2002, 09:16 AM
The LSClaimedTypes-trick (a.k.a. the LaunchServoices Claimed Types) is mentionned here (http://www.google.com/search?q=cache:o228WojKLEQC:developer.apple.com/carbon/tipsandtricks.html+How+do+I+rebuild+the+LaunchServices+database%3F&hl=en).

(the original web page on Apple's web site is corrupted and does not show the interesting bit).

It says:

How do I rebuild the LaunchServices database?
So you've just added a beautiful large icon to your application but it's not
showing up. The problem may be that the LaunchServices database needs
refreshing. The best way to force LaunchServices to rebuild its database is to
delete its files by do the following:

From the "Terminal" application:


cd ~/Library/Preferences/
rm LS*
rm .LS*
Then log out and log back in.


There is also something which I am not too sure exactly how to use, but could be useful. In the terminal you can see some form of mapping from LaunchServices with:


[localhost:~] dccote% defaults read com.apple.LaunchServices
{
LSBindingPrefsAllRolesKeyPrefix = "A;";
LSBindingPrefsEditorRoleKeyPrefix = "E;";
LSBindingPrefsExtensionKeyPrefix = .;
LSBindingPrefsFileCompatibilityVersion = 1;
LSBindingPrefsFileCurrentVersion = 1;
LSBindingPrefsOSTypeKeyPrefix = ":";
LSBindingPrefsTypeBindings = {
"A;????.dat" = (<ffffffff 522a6368 >, com.barebones.bbeditlite);
"A;????.eps" = (<ffffffff 4a544d43 >, "");
"A;????.pdf" = (<ffffffff 4341524f >, com.adobe.acrobat.reader);
"A;????.pl" = (<ffffffff 522a6368 >, com.barebones.bbeditlite);
"A;????.readme" = (<00000017 74747874 >, com.apple.TextEdit);
"A;CARO.eps" = (<ffffffff 4a544d43 >, "");
};
LSBindingPrefsViewerRoleKeyPrefix = "V;";
}


I guess something could be done there, even though I am not sure exactly what they represent (user mappings?) where are the full mappings ?)