Re: Quark 6, 10.3.3 Every character whose character is "$"
Re: Quark 6, 10.3.3 Every character whose character is "$"
- Subject: Re: Quark 6, 10.3.3 Every character whose character is "$"
- From: Hans Haesler <email@hidden>
- Date: Tue, 11 May 2004 08:23:22 +0200
On Mon, 10 May 2004, Jason Bourque wrote:
>
I am trying to set every character where it is "&" to superior of the
>
current text box. I can get to the text box but the whose clause is kicking
>
my butt. Any help is greatly appreciated.
<snip>
>
Set style of every character whose contect is "$" to {on stlyes: "superior"}
Jason,
use 'every text' (instead of character), it will be faster.
Then: replace 'whose contect is' by 'where it is'.
And: you don't need 'on styles'. Last thing but one: use a try wrapper
(to avoid an error message when there is no "$" character.
---
tell document 1 of application "QuarkXPress 6.1"
tell current box
tell story 1
try
set style of every text where it is "$" to superior
end try
end tell
end tell
end tell
---
Last thing: when run a second time, 'superior' is set back to 'plain'.
---
Hans Haesler <email@hidden>
_______________________________________________
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.