Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'How to rebuild the LaunchServices database' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
How to rebuild the LaunchServices database
Authored by: leonAzul on Aug 20, '08 02:31:35AM

Here's an AppleScript that can be saved as a script and launched from the Script menu, or saved as an application and launched from anywhere.

(*
rebuildLaunchServicesDB.scpt
Locates the lsregister command regardless of OS version, then tells it to rebuild the Launch Services Database for all applications in the canonical Applications folder
Paul Henegan
bleulyon@mac.com
20.Aug.2008
*)

set theCommand to (do shell script "locate lsregister")
set theArguments to " -kill -r -f -domain local -domain system -domain user"
set thePath to " /Applications"--edit this as needed
set theScript to theCommand & theArguments & thePath
do shell script theScript



[ Reply to This | # ]