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: Mucho Grande on May 27, '05 02:48:39AM
This seemed to work for me, and I posted it on the other thread. From what I have seen, Spotlight only includes the comments from an iPhoto picture if they have been made after the installation of Spotlight. This script will copy the photo's comment, remove it, then put it back.


-- A quick script to make your iPhoto comments searchable
-- in Spotlight.
--
-- All it does, is remove the comments of a photo, and then
-- puts it back.
--
--
tell application "iPhoto"
	activate
	-- First get all the photos in the library.
	set edit_photos to (every photo of photo library album)
	-- Go through each individual photo
	repeat with edit_photo in edit_photos
		-- Store the comment of the photo, remove it, and then
		-- put it back.
		set photo_comment to comment of edit_photo
		set comment of edit_photo to ""
		set comment of edit_photo to photo_comment
	end repeat
end tell


[ Reply to This | # ]
10.4: Another method to force iPhoto Spotlight indexing
Authored by: n8gray on May 27, '05 05:31:55PM

FWIW, adding/removing a keyword also got all of the comments idexed for me as well.



[ Reply to This | # ]