Re: Dialects
Re: Dialects
- Subject: Re: Dialects
- From: Xandra Lee <email@hidden>
- Date: Mon, 13 Nov 2000 08:55:50 -0500
I had a one line script which worked fine in Tex-Edit until about version
4.
It was designed to makes every blank paragraphs 4 points.
Orig Script
tell document 1 of application "Tex-Edit Plus"
set size of character 1 of (every paragraph whose length = 0) to 4
end tell
Beginning about Version 4, above script stopped fuctioning (no errors -
just no results)
It appears that the problem stems from the fact that the first script's
"whose clause" now returns contents rather than a reference to the
paragraph number. ie line 2 -> {"", "",...}.
I've only been able to replace it with the MUCH slower version since it
requires a repeat clause. as follows..
tell document 1 of application "Tex-Edit Plus"
set x to (offset of every paragraph whose length = 0)
-->{1107, 2129, 2260,...}
repeat with i from 1 to (count of items of x)
set size of character (item i of x) to 4
end repeat
end tell
Any ideas on syntax that would NOT require a repeat.
thanx
xandra
Alixandra Leigh
AceDesign
email@hidden
------------------------------------------
Furniture:
><
http://home.rochester.rr.com/alexleighs/furniture/furniture.htm>
Renderings:
><
http://home.rochester.rr.com/alexleighs/interiors/interiors.htm>