The Media Library appears to be read only and I can't see any methods that would allow modification of the library. Is there an API or mechanism that I have missed?
The specific changes that I want to make are the creation of albums based on external data.
The only mechanism that I can see for this is to directly modify the sqlite files comprising the database for the library but obviously this is far from ideal.
It looks like Applescript probably provides what I need although there may still be gaps.