Re: Formatting fonts
Re: Formatting fonts
- Subject: Re: Formatting fonts
- From: Nigel Garvey <email@hidden>
- Date: Mon, 03 Nov 2014 21:47:28 +0000
Alex Zavatone wrote on Mon, 3 Nov 2014 16:29:51 -0500:
>it might be a good practice then to set this file to what you want the
>contents to be and duplicate it just in case the file gets reset on a
>regular basis.
>
>That way, whenever the mystery service decides to reset the editing
>fonts back to the defaults, all you need to do is quit the app,
>duplicate your backup file, delete the reset plist file and replace it
>with a renamed copy of your preferred set.
Yes. I do keep a duplicate after my experiences with Snow Leopard and
the upgrades. But in Mavericks and Yosemite, the file isn't being
overwritten, just spontaneously ignored.
NG
>Cheers,
> - Alex
>
>Sent from my iPad. Please pardon typos.
>
>On Nov 3, 2014, at 4:09 PM, Nigel Garvey
><email@hidden> wrote:
>
>> 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