• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dialects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>


  • Follow-Ups:
    • Re: Dialects
      • From: Paul Berkowitz <email@hidden>
    • Re: Dialects
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: How to get IP in dial-up connection
  • Next by Date: FM question: Omit in find
  • Previous by thread: Re: Dialects
  • Next by thread: Re: Dialects
  • Index(es):
    • Date
    • Thread