Keywords still available in database after removing

Hello,


When I import photos with a keyword that need to be removed, I remove them with Shift+Enter from the photos and delete the keywor from the keyword list using the keyword HUD display. When I restart the keyword is still gone, but when I have used the 'Repair Database' option the keyword is in the keyword list again. It seems that the delete is not permanent and that is undesirable for me.


Is there an option to permanently delete keyword or is it a bug?

iMac 20, Mac OS X (10.7.2), AppleTV, iPhone 4S, iPad, MacBook

Posted on Dec 25, 2011 6:25 AM

Reply
20 replies

Dec 25, 2011 11:33 AM in response to Lt.Tuvok

The keyword will appear in the keyword HUD as long as some images in your database still have the keyword. After you repaired or rebuild the database, there may be some recovered images added again to your library, so the keyword will show again, until you delete this recovered images. Also, any image auto imported from the Photo Stream carrying keywords may again add the keyword you just deleted.


Regards

Léonie

Dec 25, 2011 11:42 AM in response to léonie

Hello leonieDF, thank you for your answer.

The files with the keyword is not in my database.


As a test I created a new database and imported one photo with a keyword. Then I deleted the keyword from the photo and restarted Aperture. I checked the keyword and it is done. Then I repaired the database and the keyword was in the list again without an photo connected to it. But is was in my keyword list. A bit strange since the keyword is not connected to a photo and was deleted.

Dec 25, 2011 12:34 PM in response to Lt.Tuvok

I see you are running Lion;


If you quit a program in Lion, you cannot be sure that all processes are completely terminated, the program may be kept in the cache and restarted from the cache, even if the Dock icon shows the program as terminated, see the Lion process model. If you want to quit a program and to save an altered state, log off.


So, if you quit a program, and restart it, i.e., if you manipulate the database, I would log off after quitting, to make sure that all processes will terminate.


Perhaps you might try to delete the keyword again, using your small test database, and then log off before repairing the database, log on again and see what happens.


To check if there is a problem with your account, I'd recommend to repeat the same test using a different account, maybe the guest account.

Dec 25, 2011 2:18 PM in response to léonie

I started with your suggestion of testing and find the following.

In the Aperture Library I found a file keywords.plist that hold all the keywords. It seems that a repair restores a previous version of this file, thus reset the keyword to its previous state. I think based on the files I found in the folder ' History'. I find out that Aperture restores the 'last action - 1'


- I created a test 1 and closed Aperture. Repaired Aperture and test1 was gone.

- I created a test 1, closed Aperture, openend it again and created a test2. Then I repaired Aperture and test 1 was restored and test 2 not available.


@ I tried it again and this time the behaviour is changed.

Dec 25, 2011 3:22 PM in response to léonie

Did you log off, before you repaired the library?

Never mind, I tested that myself an two MBPs running Lion, and I found in my sample library exactly the symptoms you describe. 😟


It seems to be a bug, and i do not remember to have seen this in in previous versions of Aperture.


You might try if "rebuild Database" does a better job with the keywords - again with your sample library.


I'll try this on my SL-MBP, to see if this problem is caused by Lion.


Cheers

Léonie

Dec 25, 2011 3:47 PM in response to Lt.Tuvok

On my Snowleopard MBP (OS 10.6.8, Aperture 3.2.2) the "Repair Library" works well. All added and/or deleted/renamed keywords survived the Database Repair.


Would be good, if someone else could please confirm this.


Only my two Lion MBPs seem to revert Keywords to the prevoius state, if I repair the database, after changing keywords.


So it looks like a Lion Bug to me ...

Dec 26, 2011 8:20 AM in response to Lt.Tuvok

Definitely a bug. What's happening is the keywords.plist file in the Aperture library package is not being updated when a keyword is deleted from Aperture. Normally this isn't a problem as the keywords are cached and the plist file is only read when a repair or rebuild is done.


So on normal startup the cached keywords are sued which is fine because the delayed keyword is gone but if you rebuild or repair the plist file is read and the deleted keyword comes back.


Now the plist file is updated if you add a keyword to Aperture so one work around would be to ad a keyword after you delete the keywords you don;t want. This will force the plist file to be updated. Once it's been updated you could remove the dummy keyword if you want.


Another work around wourl b to delete the plist file and start Aperture. If the plisy file is missing it will be rebuilt from the cache.


Léonie when I tried this in Snow Leopard with 3.2.2 I still seemed to have the same problem. Are you sure you had 3.2.2 on your SL machine when you tried this? I'm going to boot into SL later and try this again to see if I messed up but to me this seems like a 3.2.2 (at least, don't have anything older to try) problem and not a Lion issue.


regards

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Keywords still available in database after removing

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.