Re: Formatting fonts
Re: Formatting fonts
- Subject: Re: Formatting fonts
- From: Robert Poland <email@hidden>
- Date: Tue, 04 Nov 2014 18:09:19 -0700
Emmanuel,
I like your script, but …
I’d rather mostly stay with the default colors.
I’m having trouble converting the default colors to the format you use in the color code in the script.
What app”?” did you use to get the codes you use?
TIA,
> On Nov 3, 2014, at 7:17:AM, Emmanuel LEVY <email@hidden> wrote:
>
> This may be only partially true.
>
> For instance, here a script I run whenever I install a new machine, to set Applescript's text formats.
>
> --------
> set theformats to {{font:"Lucida Grande", text size:11.0, style:{}, color:{9993, 9993, 9993}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{41, 0, 0}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{19835, 36752, 10829}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 32767, 4528}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{31999, 31999, 31999}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{56682, 2241, 16137}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 26, 0}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{59999, 0, 0}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 21747, 36474}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 0, 65535}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 0, 65535}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{27745, 1206, 54283}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{19130, 7761, 32626}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 5668, 45210}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 5670, 45210}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{0, 5671, 45210}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{17401, 5414, 45323}}, {font:"Lucida Grande", text size:11.0, style:{}, color:{9781, 4600, 20973}}}
>
> repeat with i from 1 to (count theformats)
> set ASFormat i to contents of item i of theformats
> end repeat
> --------
>
> Best,
> Emmanuel
Robert Poland
Fort Collins CO
_______________________________________________
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