Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Fontbook



On Jan 27, 2008, at 4:23 PM, Michael Curtis wrote:

I will give that a try. I assumed it was just going to give me an answer rather than actually do it. I really want to turn everything off and then turn specifics on. I suppose I will have to find what families are present. Each machine maybe difference. I certainly don't want to name each font family!

You ought to be able to do something like this:

tell application "Font Book"
repeat with f in font families
set enabled of f to false
end repeat
end tell

or even

tell application "Font Book"
set enabled of (every font family) to false
end tell

Unfortunately, trying this out, it seems that you can read the "enabled" property of a font family but can't write it ... i.e., it seems as though the property really is read-only, even though it isn't marked in the dictionary.

Regards,

Neil Faiman
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Scripting Fontbook (From: Michael Curtis <email@hidden>)
 >Re: Scripting Fontbook (From: Neil Faiman <email@hidden>)
 >Re: Scripting Fontbook (From: Michael Curtis <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.