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


Click here to return to the '10.4: Another method to force iPhoto Spotlight indexing' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: Another method to force iPhoto Spotlight indexing
Authored by: jaysoffian on Mar 03, '06 05:26:19PM
I just filed this bug with Apple after finally figuring out why my photos weren't getting picked up by spotlight:

iPhoto allows you to place comments on Folders, Albums, and Smart Albums.
However, if the comment is multiline the newline causes mdimport to choke on
AlbumData.xml

To reproduce:

- In iPhoto, File -> New Folder
- Select the new folder in the iPhoto Source pane.
- In the iPhoto Information pane (click (i) if needed to expose it), click in
  the comments box and then type any multiline comment. e.g.
  "hello<return>world"
- Quit iPhoto
- In the Terminal, run mdimport on the library:

callisto:~/Pictures/iPhoto Libraries% mdimport Test
*** Parsing file: '/Users/jay/Pictures/iPhoto Libraries/Test/AlbumData.xml'
ERROR: syntax error (<key>PhotoCount</key>)

Single line comments work fine. I believe the problem is that iPhoto places
the newline literally in the XML file instead of escaping it:

            <key>Comments</key>
            <string>hello
world</string>

The same problem occurs when placing multiline comments on Albums and Smart
Albums (I didn't test other sources such as Slideshows or Books).

Multiline comments on images appear to work fine, though I note the newline is
not escaped in the XML file on them either.
This is with iPhoto 6.0.2 and 10.4.5.

[ Reply to This | # ]