MACSCRPT Archives

February 2008

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Tue, 19 Feb 2008 15:34:32 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (28 lines)
On Feb 19, 2008, at 3:13 PM, Levon Spradlin wrote:

>        tell front document
>            repeat with p from 1 to count of pages
>                repeat with a from 1 to count of text boxes
>                    repeat with c from 1 to count of characters

These lines have problems.

you are repeating with p, a, and c being numbers not the actual items.

You could say
repeat with p in every page or document 1
	repeat with a in every text box of p
		repeat with c in every character of a

or

tell front document
	repeat with p from 1 to count of pages
		repeat with a from 1 to count of text boxes of page p
			repeat with c from 1 to count of characters of text box c

Also not sure on if the way you are doing the replacement would work.

-Mark
No rest for the wicked.

ATOM RSS1 RSS2