tell application "Font Book"
set x to every font library
--{font domain "AllFonts" of application "Font Book", font domain "User"
of application "Font Book", font domain "Computer" of application "Font Book", font domain "Network" of application "Font Book", font library "My Extra Fonts" of application "Font Book"}
set y to font library "My Extra Fonts"
set enabled of y to false
remove y
end tell
Err message: (null) "(null)" can not be modified.
Err number: -5
The dictionary for Font Book has a command:
remove reference from reference
but I cannot figure out what reference it needs to be able to remove the library.
This would be the equivalent of right clicking the Library in Font Book and choosing: Delete "<name of library>".
Thanks.