• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Remove a font library in Font Book
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Remove a font library in Font Book


  • Subject: Remove a font library in Font Book
  • From: Jim Skibbie <email@hidden>
  • Date: Fri, 29 Mar 2013 20:50:35 +0000
  • Thread-topic: Remove a font library in Font Book

Can anyone advise how to remove a font library from Font Book? I can list them (confusing how some are class domain, and others class font library), I can disable them, but when I try to remove the library I get an error:

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.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Remove a font library in Font Book
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Won't run
  • Next by Date: Re: Remove a font library in Font Book
  • Previous by thread: Re: Removing a row or column
  • Next by thread: Re: Remove a font library in Font Book
  • Index(es):
    • Date
    • Thread