10 Replies Latest reply: Jun 12, 2012 12:43 PM by plisvb2
mammonist Level 1 Level 1 (10 points)

I'm astonished to find that all my Spotlight comments are missing since I upgraded to Lion. For example I have a folder called Published pdfs and the spotlight comment for each file was the name of the periodical in which it appeared. All gone. Anybody have any idea what's going on? Any similar experiences? Thanks.


Macbook Pro 2.26, Mac OS X (10.6.7)
  • 1. Re: Spotlight comments have vanished since Lion
    AJT10307 Level 1 Level 1 (0 points)

    I'm having the same issue.  As I've added spotlight comments back in manually, I've noticed they will vanish from a given file when I throw out another file in the same folder.

  • 2. Re: Spotlight comments have vanished since Lion
    ctrmpoet Level 1 Level 1 (0 points)

    I'm suffering a version of this, too.

     

    I've got a list of about a hundred folders, and I added comments to the folders via the "Spotlight Comments" space.  But they don't survive long.  Well, to be more precise, a bunch of them don't survive long.  The first dozen or so are there, but all the others evaporate into nothingness.

  • 3. Re: Spotlight comments have vanished since Lion
    rshs Level 1 Level 1 (0 points)

    Exact same problem. And I'm scared that these comment are gone forever. They're essential to tracking my workflow for business purposes! Any answers?

  • 4. Re: Spotlight comments have vanished since Lion
    Markus1978 Level 1 Level 1 (0 points)

    Same here. Intresting though - in a folder synced with dropbox the comments appear on a 10.6 machine. So it seems they are still there but somehow "hidden". Thats quite a huge issue for my daily workflow!

  • 5. Re: Spotlight comments have vanished since Lion
    Macgruder Level 1 Level 1 (10 points)

    In the terminal, do this on a file that you know had/has a comment (that doesn't show with Command-I) :

    $ mdls /path/to/somefile | grep Comment

     

    And you should get this:

    kMDItemFinderComment  = "SOME COMMENT"

     

    $ mdimport -n /path/to/somefile

    and now the comment should reappear in the finder

     

    I'm not sure why this works. Perhaps someone could come up with a way to automate the process to get them all back.

  • 6. Re: Spotlight comments have vanished since Lion
    rshs Level 1 Level 1 (0 points)

    I'm not adept enough to get these Terminal commands just right. Even copying the path just so apparently escapes me, as my attempts in Terminal to execute this procedure results in error messages.

     

    If someone could either walk me through this (how to copy the path of the file accurately, how to edit command line in Terminal), or come up with a more automated way of doing this, I would run right out and buy a large bag of fun-size Milky Way bars and eat them. I mean, send them to this person in gratitude.

  • 7. Re: Spotlight comments have vanished since Lion
    Macgruder Level 1 Level 1 (10 points)

    OK. The easiest way is to use the TAB key to automatically expand the file path or to use quotes

     

    Click on the file you want and do Command-I to see its path.

     

    For example

    /Users/rshs/Documents/My File.txt

     

    You can do a couple of things:

     

    $ cd "/Users/rshs/Documents/"    (you can copy straight out of the Get Info; cd = change directory)

    $ mdls M [hit the TAB key  so that it expands] etc.

     

    Or you can just do it from the beginning using the TAB key

     

    $ mdls /Us[TAB]r[TAB]d[TAB]

     

    etc.

     

    Don't type the $,

    You'll see what I mean about the tab when you try it.

    If your file name has a space, you'll need to do \ then a space, but usually the TAB key will take care of it anyway. If you get a beep, you need to type a couple of extra letters:

    cat

    coat

     

    c[TAB] won't do anything but ca[TAB] will expand to cat

     

    You can TAB to expand the commands such as

    mdls

    but you'll usually need to type the first 2 or 3 letters.

  • 8. Re: Spotlight comments have vanished since Lion
    Pierre L. Level 4 Level 4 (3,860 points)

    Same problem here. Imho, that problem is related to the one discussed in the following thread: How do keep folder icons from rearranging?

  • 9. Re: Spotlight comments have vanished since Lion
    philipfromsalt lake city Level 1 Level 1 (0 points)

    Actually, there is even an easier way to do this.

     

    In the terminal type

     

    mdls(space)

     

    and then drag the file to the terminal window and hit return. (space) means hit the space bar.

  • 10. Re: Spotlight comments have vanished since Lion
    plisvb2 Level 1 Level 1 (0 points)

    when I do this process with a file on my Mac's hard drive, it works fine, but spotlight comments still don't show up in the comments window of the file.  I do however see them within terminal.

     

    when I do this process on a file on my external hard drive it says it can't file the file but I'm dragging the file into the terminal so I know the path is correct.