La commande « mdimport » permet entre autre de lister les « importers » présents dans votre système. Il s’agit des fichiers qui sont utilisées par Spotlight pour identifier les fichiers et les données qu’ils contiennent, ainsi Spotlight saura quelle information indexer.
La commande à utiliser est la suivante :
$ mdimport -L
Vous obtiendrez un liste sur Mavericks :
iMac-de-Henri:~ hdrapin$ mdimport -L
2014-01-01 18:07:14.452 mdimport[53423:507] Paths: id(501) (
« /Library/Spotlight/iBooksAuthor.mdimporter »,
« /Library/Spotlight/iWork.mdimporter »,
« /Library/Spotlight/Microsoft Office.mdimporter »,
« /System/Library/Spotlight/Application.mdimporter »,
« /System/Library/Spotlight/Archives.mdimporter »,
« /System/Library/Spotlight/Audio.mdimporter »,
« /System/Library/Spotlight/Automator.mdimporter »,
« /System/Library/Spotlight/Bookmarks.mdimporter »,
« /System/Library/Spotlight/Chat.mdimporter »,
« /System/Library/Spotlight/CoreMedia.mdimporter »,
« /System/Library/Spotlight/Font.mdimporter »,
« /System/Library/Spotlight/iCal.mdimporter »,
« /System/Library/Spotlight/Image.mdimporter »,
« /System/Library/Spotlight/iPhoto.mdimporter »,
« /System/Library/Spotlight/iPhoto8.mdimporter »,
« /System/Library/Spotlight/Mail.mdimporter »,
« /System/Library/Spotlight/MIDI.mdimporter »,
« /System/Library/Spotlight/Notes.mdimporter »,
« /System/Library/Spotlight/PDF.mdimporter »,
« /System/Library/Spotlight/PS.mdimporter »,
« /System/Library/Spotlight/QuartzComposer.mdimporter »,
« /System/Library/Spotlight/RichText.mdimporter »,
« /System/Library/Spotlight/SystemPrefs.mdimporter »,
« /System/Library/Spotlight/vCard.mdimporter »,
« /Applications/iBooks Author.app/Contents/Library/Spotlight/iBooksAuthor.mdimporter »,
« /Applications/Microsoft Office 2011/Microsoft Outlook.app/Contents/Library/Spotlight/Microsoft Outlook.mdimporter »,
« /Applications/Scapple.app/Contents/Library/Spotlight/ScappleMetaDataImporter.mdimporter »,
« /Applications/Scrivener.app/Contents/Library/Spotlight/ScrivenerMetaDataImporter.mdimporter »
)
Notez les derniers de la liste, ils sont ajoutés suite à l’installation des applications sur le système comme : Scrivener, Microsoft Outlook etc… Si l’application ne propose pas de descriptif, le fichier ne sera pas correctement indexé, dans ce cas seul le nom du fichier est est utilisé.
Les résultats de l’indexation dépendent essentiellement de la présence ou pas de ces fichiers « mdimporters ».
Henri Dominique Rapin