Re: addressing words between tabs in Xpress
Re: addressing words between tabs in Xpress
- Subject: Re: addressing words between tabs in Xpress
- From: email@hidden
- Date: Tue, 30 Apr 2002 22:34:51 +0100
That was it! Thanks - I even remember thinking that "Character 1" should be
"character i" when I saw this last week. I was then off work ill and I came
back to this today and couldn't find it!!!
Thanks again. I have now tatooed this to my arm.
Steve
>
tell document 1 of application "QuarkXPress 4.11"
>
activate
>
tell story 1 of current box
>
repeat with i from 1 to count of paragraphs
>
if paragraph i contains "Off" then
>
try
>
set color of text from character after (character 1 where it = "
") to character -1 of paragraph i to "Red"
>
end try
>
else if paragraph i contains "or more" then
>
try
>
set color of text from character after (character 1 where it = "
") to character -1 of paragraph i to "Blue"
>
end try
>
end if
>
end repeat
>
end tell
>
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.