Re: Dialects
Re: Dialects
- Subject: Re: Dialects
- From: "Arthur J Knapp" <email@hidden>
- Date: Mon, 13 Nov 2000 12:32:53 -0500
>
Subject: Re: Dialects
>
Date: Mon, 13 Nov 2000 08:55:50 -0500
>
From: Xandra Lee <email@hidden>
>
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)
I don't use Tex-Edit Plus, so I'm just guessing, but:
if Tex-Edit Plus defines an insertion point object, you may want
to try that instead:
set size of insertion point 1 of (every paragraph ...
An insertion point pretty much *has* to be an object reference,
doesn't it?
>
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 -> {"", "",...}.
You might also want to try something like:
tell (character 1 of every paragraph of document 1 of application "Tex-Edit
Plus" whose length = 0)
set size of it to 4
end tell
--
{
Arthur J Knapp, of STELLARViSIONs ;
http://www.STELLARViSIONs.com ;
mailto:email@hidden ;
http://developer.apple.com/techpubs/
macos8/InterproCom/AppleScriptScripters/
AppleScriptLangGuide/
}