Hi John - I'm not yet entirely sure what I'm doing, but so far I've been able to:
- make a duplicate of just the SQL data
- open the copy (to preserve my real data)
- selected rows from all tables (data can be modified, but I'm not sure yet on creating human-readible views of the Aperture data.
To get the duplicate, I had to first navigate to my aperture library. Opening my terminal, I executed a CD command to:
cd "/Aperture Photo Libraries/Aperture Library.aplibrary/Aperture.aplib" [enter]
Here you'll find the SQL database, called "Library.apdb". Copy this to a safe location so you can muck about with it. (I used my home directory) using:
copy Library.aplibrary ~/testdatabase.apdb [enter]
Change to your home directory by:
cd ~ [enter]
Still from the terminal window, you can open the database with:
sqlite3 testdatabase.apdb [enter]
From here it seems to be fairly standard SQL based commands to manipulate the data, but I did find it a bit quirky. With poor documentation online, the important thing is to be sure to end all SELECT, INSERT or UPDATE commands with a semi-colon ; . Until I got this, I was in terminal ****. 🙂
You can get a list of all the tables in the database by using:
.tables [enter] once inside the SqlLite3 command prompt. If you use
SELECT * FROM zrkkeyword; - you should see a selection of all the keywords in your library. I am not yet aware of the database schema or rules as it applies to ensuring valid Aperture data, I hope to get that identified over the next week or two.
Hope it helps - if you find anything, lemme know. 🙂
Cheers,
ted