• 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: "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/
}


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