Re: Tex-Edit: What OSAX is this using?
Re: Tex-Edit: What OSAX is this using?
- Subject: Re: Tex-Edit: What OSAX is this using?
- From: Kai Edwards <email@hidden>
- Date: Thu, 21 Nov 2002 04:57:50 +0000
on Tue, 19 Nov 2002 07:46:03 -0700, Gnarlodious <email@hidden>
wrote:
>
This ran well in 9.2, but not in X. The problem line is:
>
set color of style run n to "#FF33DD"
>
So I need to know:
>
1) Does this script run vanilla in 9.2? I tried it in 9 and no go.
I don't believe this is a vanilla coercion on any system, Rachel.
>
2) If not, which addition is it using?
My guess is that you had Akua Sweets installed in your previous system. That
allows coercions like this:
"#990099" as RGB color --> {39321, 0, 39321}
10027161 as RGB color --> {39321, 0, 39321}
{39321, 0, 39321} as HTML Color --> "#990099"
10027161 as HTML Color --> "#990099"
"#990099" as Million Color --> 10027161
{39321, 0, 39321} as Million Color --> 10027161
The coercions don't necessarily have to be explicit and can be invoked
automatically, depending on the type of value required (which might explain
some occasional confusion about Akua's presence).
>
And is it available for X?
AFAIK, not yet - unless someone else knows different? There may be other
OSAXen for OS X that could help, but I haven't explored this area yet.
>
Try this:
>
>
tell application "Tex-Edit Plus"
>
activate
>
tell front window
>
repeat with n from 1 to count of style runs
>
set color of style run n to "#FF33DD"
>
end repeat
>
end tell
>
end tell
>
>
Tom Bender of Tex-Edit has assured me this uses an OSAX, but I did not know
>
it at the time.
Ah yes, I'm afraid 'scripting additions dementia' (SAD) can strike any one
of us at any time! (I sometimes run a helpful little script which checks for
third party OSAXen, enables/disables them as required - and, if necessary,
forces a restart.)
HTH
Kai
--
email@hidden
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.