Re: Quark Xpress again (style spec)
Re: Quark Xpress again (style spec)
- Subject: Re: Quark Xpress again (style spec)
- From: "G?ran Ehn" <email@hidden>
- Date: Fri, 11 Oct 2002 11:57:09 +0200
Well I did run your code without changing anything else
than the quarkname at line 1, but I got an error after the
24th iteration in the first repeat loop saying "can't make
item 25 into a string. Probably since charStyle returns 24
and the loop (which uses count of theText returns 40
items) wants to continue....see the problem here?
I'll be glad to test again if you want to give it another
try.
If I'll get the time I'll play some more with your code
this afternoon, after all, we might have both missed out
on something here and I beleive your code is interesting
and will definately do some more tests.
Kind regards
Goran Ehn
On Fri, 11 Oct 2002 08:36:46 +1000
Shane Stanley <email@hidden> wrote:
On 11/10/02 12:25 AM +1000, Gvran Ehn,
email@hidden, wrote:
Yes, something like this, however this does not work
either
Did you actually run the script I posted? It *does* work.
since the count of parStyles returns 19 on my test text
and the charStyles
returns 24 and theText returns 40, therefore its not
possible to gather them
together in a repeat loop.
Stop counting and run the code! The number of character
styles must match
the number of items of text (it didn't with your code
because you had an
unnecessary "of every paragraph" in there). Try copying
and pasting my code
exactly.
And the number of paragraph styles doesn't have to match
because that's a
separate loop, and in that loop we break the text into
paragraphs rather
than text style ranges -- one paragraph, one style sheet.
--
Shane Stanley, 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.