Spotlight problem in Lion (Tags gone AWOL!)

My friend, Pierre Bernard of Houdah Software, figured out what was going on. I'm curious if anyone else has yet encountered this problem.
I noticed the problem with sound files - you search for a specific piece of information (a tag) and it just can't find it.  I noticed this both in Spotlight itself, and in Houdah Spot, which is a very advanced front end for Spotlight.
According to Pierre:
The problem is that the CoreMedia.importer does not forward this information to Spotlight.
Whenever you modify a file on the system, Spotlight searches for an importer plug-in to process the file. The role of the importer is to process the file into a list of metadata attributes and values. Those are stored by Spotlight and thus searchable.
The Lion version of CoreMedia.importer provides only basic information: just file attributes and a bogus audio bit rate.
The older version of CoreMedia.importer provided title, album, track number, author, composer, …
Pierre submitted this information to Apple
Here are his more specialized technical reports:
Attached below is the output for:
mdimport -d4 "/Volumes/Media/iTunes Music/Compilations/Jagged Little Pill/12 Wake Up.m4a"
CoreMedia.mdimporter reports a audio bit rate of 128 bit/s. The correct value would be 128kbits/s
Thus CoreMedia.mdimporter should return a value of 128000.
Conversely /System/Library/Spotlight/Audio.mdimporter reports correct values for MP3 files it imports.
Thus the Spotlight database has kbit/s values for M4A files, but bit/s value for MP3 files.
(Debug) Import: Attributes for file /Users/pierre/Music/iTunes/iTunes Music/Music/Compilations/Jagged Little Pill/12 Wake Up.m4a: {
   "_kMDItemFinderLabel" = 0;
   "com_apple_metadata_modtime" = 259498596;
   kMDItemAudioBitRate = 128;
   kMDItemAudioChannelCount = 2;
   kMDItemCodecs =     (
       AAC
   kMDItemContentCreationDate = "2004-06-09 18:33:12 +0000";
   kMDItemContentModificationDate = "2009-03-23 10:56:36 +0000";
   kMDItemContentType = "com.apple.m4a-audio";
   kMDItemContentTypeTree =     (
       "com.apple.m4a-audio",
       "public.mpeg-4-audio",
       "public.audio",
       "public.audiovisual-content",
       "public.data",
       "public.item",
       "public.content"
   kMDItemDisplayName =     {
       "" = "12 Wake Up.m4a";
   kMDItemDurationSeconds = "293.4766666666667";
   kMDItemKind =     {
       "" = "Audio-MPEG4";
       da = "MPEG-4-lyd";
       de = "MPEG-4-Audio";
       en = "MPEG-4 Audio";
       es = "Audio MPEG-4";
       fi = "MPEG-4-\U00e4\U00e4ni";
       fr = "Audio MPEG-4";
       it = "Audio MPEG-4";
       ja = "MPEG-4 \U30aa\U30fc\U30c7\U30a3\U30aa";
       ko = "MPEG-4 \Uc624\Ub514\Uc624";
       nb = "MPEG-4-lyd";
       nl = "MPEG-4-audio";
       pl = "audio MPEG-4";
       pt = "\U00c1udio MPEG-4";
       "pt-PT" = "\U00c1udio MPEG-4";
       ru = "\U0410\U0443\U0434\U0438\U043e MPEG-4";
       sv = "MPEG-4-ljud";
       "zh-Hans" = "MPEG-4 \U97f3\U9891";
       "zh-Hant" = "MPEG-4 \U97f3\U8a0a";
   kMDItemLogicalSize = 4909487;
   kMDItemMediaTypes =     (
       Sound
   kMDItemPhysicalSize = 4911104;
   kMDItemStreamable = 0;
   kMDItemTotalBitRate = 128;
The CoreMedia.mdimporter version 705.35 installed with Mac OS X Lion extracts much less metadata from AAC files than version 484.52 on Snow Leopard did.
Attached below is the output of
mdimport -d4 "/Volumes/Media/iTunes Music/Compilations/Jagged Little Pill/12 Wake Up.m4a"
First from Snow Leopard. The from Lion. Output on Lion lacks:
kMDItemAlbum
kMDItemAudioEncodingApplication
kMDItemAudioTrackNumber
kMDItemAuthors
kMDItemComposer
kMDItemMusicalGenre
kMDItemRecordingYear
kMDItemStreamable
kMDItemTempo
kMDItemTitle
Thus AAC music titles, including those purchased from the iTunes store, can no longer be found with Spotlight searching for author, composer, genre, …
Attributes for file /Volumes/Media/iTunes Music/Compilations/Jagged Little Pill/12 Wake Up.m4a: {
   ":MD:kMDItemSeedLastUsedDate" = 1;
   "_kMDItemFinderLabel" = "<null>";
   "com_apple_metadata_modtime" = 284396150;
   kMDItemAlbum = "Jagged Little Pill";
   kMDItemAudioBitRate = 128;
   kMDItemAudioChannelCount = 2;
   kMDItemAudioEncodingApplication = "iTunes v4.5, QuickTime 6.5.1";
   kMDItemAudioTrackNumber = 12;
   kMDItemAuthors =     (
       "Alanis Morissette"
   kMDItemCodecs =     (
       AAC
   kMDItemComposer = "Alanis Morissette & Glen Ballard";
   kMDItemContentCreationDate = "2010-01-05 15:55:49 +0100";
   kMDItemContentModificationDate = "2010-01-05 15:55:50 +0100";
   kMDItemContentType = "public.mpeg-4-audio";
   kMDItemContentTypeTree =     (
       "public.mpeg-4-audio",
       "public.audio",
       "public.audiovisual-content",
       "public.data",
       "public.item",
       "public.content"
   kMDItemDisplayName =     {
       "" = "12 Wake Up.m4a";
   kMDItemDurationSeconds = "293.4766666666667";
   kMDItemKind =     {
       "" = "MPEG-4 audio";
       da = "MPEG-4-lyd";
       de = "MPEG-4-Audio";
       en = "MPEG-4 audio";
       es = "Audio MPEG-4";
       fi = "MPEG-4-\U00e4\U00e4ni";
       fr = "audio MPEG-4";
       it = "Audio MPEG-4";
       ja = "MPEG-4 \U30aa\U30fc\U30c7\U30a3\U30aa";
       ko = "MPEG-4 \Uc624\Ub514\Uc624";
       nb = "MPEG-4-lyd";
       nl = "MPEG-4-audio";
       pl = "audio MPEG-4";
       pt = "\U00c1udio MPEG-4";
       "pt-PT" = "\U00c1udio MPEG-4";
       ru = "\U0410\U0443\U0434\U0438\U043e MPEG-4";
       sv = "MPEG-4-ljud";
       "zh-Hans" = "MPEG-4 \U97f3\U9891";
       "zh-Hant" = "MPEG-4 \U97f3\U8a0a\U6a94";
   kMDItemMediaTypes =     (
       Sound
   kMDItemMusicalGenre = "Adult Alternative Rock";
   kMDItemRecordingYear = 1995;
   kMDItemStreamable = 0;
   kMDItemTempo = 0;
   kMDItemTitle = "Wake Up";
   kMDItemTotalBitRate = 128;
Attributes: {
   "_kMDItemFinderLabel" = 0;
   "_kMDItemStaticInterestScore" = "1.111111";
   "com_apple_metadata_modtime" = 259498596;
   kMDItemAudioBitRate = 128;
   kMDItemAudioChannelCount = 2;
   kMDItemCodecs =     (
       AAC
   kMDItemContentCreationDate = "2004-06-09 18:33:12 +0000";
   kMDItemContentModificationDate = "2009-03-23 10:56:36 +0000";
   kMDItemContentType = "com.apple.m4a-audio";
   kMDItemContentTypeTree =     (
       "com.apple.m4a-audio",
       "public.mpeg-4-audio",
       "public.audio",
       "public.audiovisual-content",
       "public.data",
       "public.item",
       "public.content"
   kMDItemDisplayName =     {
       "" = "12 Wake Up.m4a";
   kMDItemDurationSeconds = "293.4766666666667";
   kMDItemKind =     {
       "" = "Audio-MPEG4";
       da = "MPEG-4-lyd";
       de = "MPEG-4-Audio";
       en = "MPEG-4 Audio";
       es = "Audio MPEG-4";
       fi = "MPEG-4-\U00e4\U00e4ni";
       fr = "Audio MPEG-4";
       it = "Audio MPEG-4";
       ja = "MPEG-4 \U30aa\U30fc\U30c7\U30a3\U30aa";
       ko = "MPEG-4 \Uc624\Ub514\Uc624";
       nb = "MPEG-4-lyd";
       nl = "MPEG-4-audio";
       pl = "audio MPEG-4";
       pt = "\U00c1udio MPEG-4";
       "pt-PT" = "\U00c1udio MPEG-4";
       ru = "\U0410\U0443\U0434\U0438\U043e MPEG-4";
       sv = "MPEG-4-ljud";
       "zh-Hans" = "MPEG-4 \U97f3\U9891";
       "zh-Hant" = "MPEG-4 \U97f3\U8a0a";
   kMDItemLogicalSize = 4909487;
   kMDItemMediaTypes =     (
       Sound
   kMDItemPhysicalSize = 4911104;
   kMDItemStreamable = 0;
   kMDItemTotalBitRate = 128;

Just FYI, I tried this and CoreMedia.mdimporter is still snagging my files.
However, if you do something like:
$ mdimport -g $to_the_snowleopard/Audio.mdimporter $files_to_index
This should work, at least until the system decides to reindex with the default.  However, neither appear to be importing M4a files and when I run this command with either the Snow Leopard Audio.mdimporter or CoreMedia.mdimporter I get:
"2011-10-01 11:03:14.235 mdimport[1386:707] Imported '/Volumes/Work/Sound Library/Sound Ideas/SI9000 M4A/SI9012/901299 Swinging Wood Door 6.m4a' of type 'com.apple.m4a-audio' with no plugIn"
Ugh: "no plugin."   When I don't use -g and let the machine use it druthers to decide which importer to use, it uses the /System/Library/Spotlight/ one.  If I remove the CoreMedia importer from /System/Library and leave the Audio and CoreMedia importer in /Library/Spotlight, it imports m4as with no plugin.  If I COPY the old Snow Leopard CoreMedia importer into /System/Library/Spotlight, it imports m4as with no plugin.  Something keeps the system from using the old importer, you suppose the new one is signed and the old one is just untrusted?
I for one use the kMDItemComment and kMDItemDescription extensively for a sound effects library and not having them in my Apple Lossless M4a files really screws me up.

Similar Messages

  • Spotlight Problem

    Hi everyone,
    since Lion i experience problems with Lion and Spotlight in that way, that it finds for example only pdf-files, no calendars, no emails, no pictures....
    i work with a user account and
    I tried:
    - repair access rights
    - reindexing by draging the volume in privacy and out
    - reindexing with terminal
    - reset persmission
    at least i called Apple Support.
    After the procedure above, they finally discribed to me, that my setup SSD (for OS) and HDD (User Account and for data at the place where the optical drive was) is not supported, and that may be the problem. So i build the hole thing back and the problem still exists.
    - when i create a new user spotlight seams to work well.
    - but when i try to access system settings and ical it crashes...
    So, maybe my user account is broken and the whole installation.... 
    I thinking about reinstall Lion...but what with my data? Migrate the old user will import the problem again...
    Does anyone have a suppestion what else to do?
    Thanks
    -s

    Reinstalling lion seems the way to go. Maybe your optical HDD isn't installed correctly as well. Try putting it back and making sure your connection is correct and secure. Further support for this particular setup at www.macsales.com who make a connection like that.
    I have not expereinced the issue you described and I too have my OS on an SSD and my home folder on an HDD.
    Reinstalling lion is a good idea. Verify and repair your disks in disk utility before proceeding to do so thoug, while in the boot recovery..

  • Problem with display tags (not accepting inner tags)

    Hi guys ,
    I am using display tags which is fine but i had a problem with anchor tag and the jsp display tag.
    <display:column title="Row_Id" >
    ' target="-blank" onclick=""><c:out value="${row_rowNum}"/>
    </display:column>
    here i got the exception:
    The value of attribute "href" associated with an element type "a" must not contain the '<' character.
    here if jstl is not used then how to put my value in anchor tag
    please help me.

    Can you use EL directly:
    <a href="example.jsp?id=${row.id"/"></a>

  • Apple tv is giving me a meesage that says... There is a billing problem with a previous purchase. Go to the iTunes Store on your computer and click Purchase History to resolve problem. I have gone to my purchase history but can't seem to fix this issue.

    Apple tv is giving me a meesage that says... There is a billing problem with a previous purchase. Go to the iTunes Store on your computer and click Purchase History to resolve problem. I have gone to my purchase history but can't seem to fix this issue.

    You can contact the iTunes Store Customer Service department at no charge using the form on their Support page (select the category and subcategory closest to the issue you're reporting and you'll find an "Email Us" button) and explain your problem to them.
    Copied from Varjak Paw in :https://discussions.apple.com/thread/2598671

  • Problem with Lion 10.7.3 with hp laserjet 3600n network  printer

    Hi
    Problem with Lion 10.7.3 with hp laserjet 3600n network  printer
    Guys i am having a mad day with this new OS and some network printer none of them work with new LION,The software for this printer is currently unavaliable. Please contact the printers manufacturer for the latest software, i need the drivers for this, please give a hand with this issue
    Best Regards

    Exactly the same infuriating problem we and many others get with OS X from 10.6 on when Apple dropped Apple Talk.
    Having spent days fighting to get drivers that will run our older laser printers like HP5000, 5100, 2100, 2200 and 4MV, we came up with a simple solution:
    We use an iMac running 10.5.8 as a print server. All the 10.6 upwards Macs on the same network will see and add the printers immediately through the shared older (Apple Talk) iMac.
    Cheapest and simplest option really .... it'sannoying that a brand new Mac can no longer see existing network printers without complex investigation and trying various downloads.
    Answer is simple and cheap if you happen to own a 4 or 5 year old Mac with an OS lower than 10.6 which still has Apple Talk.

  • Startup problem with Lion OS 10.7.3

    Just recently, I've been experiencing a startup problem with Lion. I don't usually have any issues running my Mac, so I'm at a loss why this is happening now.
    I have an Intel Mac Pro running 10.7.3. I usually leaving my Mac running all the time and only restart when the need arises. In addition to being my main computer, this mac alsocontrols a MacMini that serves as a music server thru screen sharing.
    This past weekend, I restarted my Mac and could not get past the grey screen. The mac chimes, the apple logo appears with the spinning gear, the blue screen briefly appears, but instead of progressing to the desktop it reverts to the grey screen with a repeating cycle of the spinning gear appearing (spins for a while, stops, disappears, reppears spinning, stops, disappears, over and over) - never progressing beyond that stage.
    I decided to reinstall the system and things have been fine for the past few days. Today, restarting again resulting in the same problem.
    I've tried several things without success. I disconnected all peripherals, reset the PRAM/SMC, ran Disk Utility from a install volume and ran repair and permissions (no problems reported). Tried safe mode startup - a progress bar appeared but never fully progressed and could not get to the desktop.
    Recent changes included updating the OS to 10.7.3 and Adobe Photoshop CS5.5 - no recent hardware changes. No bluetooth devices connected.
    Any thoughts? Thanks -

    Thanks -
    I've reinstalled the OS today and am back up and running.
    But, since this is twice this has happened within the past week, I'm worried about might be causing this issue - besides bad luck. My Mac is usually rock solid - can't remember the last time I've had to reinstall the OS in the past few generations of OS X.

  • XSLT problem with img tag in Saxon

    Hi,
    Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
    Kindly help to resolve the issue.
    Kind Regards,
    Abhinandan

    Perhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.

  • My problem started when system preferences was unresponsive and would not force quit.  I tryed to restart and got the grey screen, but it never restarted.  I closed the lid and now the screen is blank.  Has anyone had a similar problem after Lion?

    My problem started when system preferences was unresponsive and would not force quit.  I tryed to restart and got the grey screen, but it never restarted.  I closed the lid and now the screen is blank.  Has anyone had a similar problem after Lion installation?

    No, as I have yet to be convinced on Lion.
    Did a permissions repair help from the install DVD?

  • I had a mac pro system..from last 2 days the keyboard is not working properly..if i typed a key but it displayed 2 or 3 keys..what is the problem? is keyboard gone..?

    i had a mac pro system..from last 2 days the keyboard is not working properly..if i typed a key but it displayed 2 or 3 keys..what is the problem? is keyboard gone..?

    Hey ynareshbabu,
    Thanks for the question. I understand you are having issues with your keyboard. The following article provides some great troubleshooting steps:
    One or more keys on the keyboard do not respond
    http://support.apple.com/kb/TS1381
    You may want to refer to the "Some keys don't work as expected" section.
    Thanks,
    Matt M.

  • Problem in fragment tag

    Hi, Im new to JSF and Facelets, I faced some problems in fragement tag when i was desigining my page, here is the code,
    <s:fragment rendered="#{show eq 'true'}">
    <ui:param name="currency" value="true"/>
    </s:fragment>
    <s:fragment rendered="#{show eq 'false'}">
    <ui:param name="currency" value="false"/>
    </s:fragment>
    <h:outputText value="#{currency}}/>
    Here, i can pass show value from another .xhtml page. If the first condition is satisfied it will print true, if the second condition satisfied expect to print false. But my code only print "false". Eventhoug its satisfied first condition, it will print "false". If i give <h:outputText value="#{currency}}/> within the fragment tag it works fine as I expect. I need helps.
    thanks
    Rajesh
    Message was edited by:
    rajeshkumar.b
    Message was edited by:
    rajeshkumar.b

    Trying
    <description><![CDATA[About 4 PM , March 31,1917.
    The salute from the Fort Christian&rsquo;s Saluting Battery as
    the Captain and officers leave the USS Hancock on their way to
    shore to take over the Danish West
    Indies.]]></description>
    This fixes the
    onmouseover="ShowToolTip('{dsPhotos::description}') problem,
    BUT
    <p>{dsPhotos::description}</p>
    now appears as
    'About 4 PM , March 31,1917. The salute from the Fort
    Christian&rsquo;s Saluting ..."
    with the undesireable &rsquo; instead of '.
    So my problem requires both html translation and javascript
    argument quoting/non-parsing.
    Any ideas?

  • Is there a fix for the WIFI problem with Lion? How can I get Lion off of my Mac?

    Is there a fix for the WIFI problem with Lion? How can I get Lion off of my Mac?

    gmiller0 wrote:
    My mac has 10.7.3 and will not connect to wifi after it wakes up. Have contacted AppleCare but the problem cannot seem to be resolved.. I guess this is a major issue with Lion:(
    What model of Mac?  I have a MBP running 10.7.3 and do not have that issue.  From the other couple of posts I've seen about it, it seems to be maybe an issue with some iMacs?  Have your tried searching the Lion or iMac forums for similar issues, just to see if anyone has hit on why it is happening?

  • Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....

    Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....is there some trick I am missing or do I need to make an appointment with a genius...

    I have the MacIntosh volume and the Boot Camp partition only.  I know that when I installed Lion, I had to go through a whole back-up and recovery of Windows and then re-format the drive. 
    The tech at the Apple Store had a previous life as a MSCE and was very helpful.  I believe he even said that I should not have htis problem with Mountain Lion which is why they gave me the flash with it onboard.  I was in the process of starting a new job when I went to Lion, so I have waited to do this next and probably last upgrade to this old MBP since I doubt Apple will support this MBP in Maverick. 
    I do not have another installation, so that is not an option.  I will try to create an external, I have plenty of hard drives around and see if I can get it done that way.  It might take me a week or two to get back to it, but I will comment back upon completion of that effort.  Thanks for your help....Dave Iverson

  • My MacBook Pro, 1.83 GHz Intel Core Duo gives me an error message during Lion install. My Intel Duo Core is not an Intel Duo Core and cannot install Lion.  I already have Snow Leopard what is the problem with Lion?

    My MacBook Pro, 1.83 GHz Intel Core Duo gives me an error message during Lion install. My Intel Duo Core is not an Intel Duo Core and cannot install Lion.  I already have Snow Leopard what is the problem with Lion?

    You need a "Core 2 Duo" for lion, and I'm guessing you only have a "Core Duo"  My wife's macbook is also a "Core Duo" and has Snow Leapord, but cannot install Lion.....

  • Is there a fix yet for the no sound problem with lion on the iMac without having to restart every time I switch the computer on?

    Is there a fix yet for the no sound problem with lion on the iMac without having to restart every time I switch the computer on?

    Try booting in Safe Mode by holding the the shift key immediately after powering on your system. Safe boot mode will for a directory check of your startup volume, then load only the required kernal extensions (kext files), and deletes some cache files. Once the system boots into Safe Mode you can simply restart the system to see whether the issue has been resolved.
    If you still have the issue try resetting the SMC by shutting down the system and disconnecting the power cord for ~15 seconds, then reconnecting the power cord. Next, reset the parameter RAM (PRAM) by holding down the option-option-P-R keys after powering ON the system. Wait until the iMac restarts twice, then let the system boot normally.

  • I'm having to many problems with Lion freezing up and want to go back to Snow Leopard,how can I do this?

    I'm having to many problems with Lion freezing up and want to go back to Snow Leopard,how can I do this?

    How to revert your Mac to Snow Leopard

Maybe you are looking for