Re: Formatting fonts
Re: Formatting fonts
- Subject: Re: Formatting fonts
- From: Nigel Garvey <email@hidden>
- Date: Mon, 03 Nov 2014 21:09:03 +0000
Robert Poland wrote on Mon, 03 Nov 2014 06:34:24 -0700:
>Hi,
>
>I understand that to format the fonts in Smile I need to set them in
>Applescript Editor preferences, and apply them.
>
>What I don’t understand is why I need to do this over and over again.
The
>changes never last.
>
>Is there a patch, or, to fix this Yosemite(?) “Feature"?
Hi Robert.
AppleScript font and colour preferences are stored in
~/Library/Preferences/com.apple.applescript.plist.
I found in Snow Leopard that this file kept getting overwritten with the
default formats, so I got into the habit of keeping it locked. This did
the trick, except during a couple of system upgrades, when new
categories of formatting were added and the file was overwritten anyway.
Occasionally in Mavericks and Yosemite, I've opened (Apple)Script Editor
and found that the AppleScript formatting has reverted to the defaults
despite the locked file. I've not been able to pin down the cause. My
com.apple.applescript.plist file, however, has _not_ been overwritten
and restarting the machine has caused the file to be reread and my own
format preferences to be restored.
Just recently, I've come up with this stupid-looking script, which saves
having to restart the computer. It does a defaults read of
com.apple.applescript and a defaults write with the result!
do shell script "asprefs=$(defaults read com.apple.applescript) ; defaults write com.apple.applescript \"$asprefs\""
You have to reopen your editor after running the script to see the
restored formatting — assuming of course that the problem on your
machine is the same as on mine!
NG
_______________________________________________
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