Re: D'oh-plicate terminology
Re: D'oh-plicate terminology
- Subject: Re: D'oh-plicate terminology
- From: Matt Deatherage <email@hidden>
- Date: Tue, 18 Nov 2003 18:29:43 -0600
On 11/19/03 at 3:10 PM, Shane Stanley <email@hidden> wrote:
>
> "InDesign CS got an error: document 1 doesn't understand the search
>
> message."
>
>
That's the error I get here when there's something wrong with one of
>
the items in the find attributes record. Can you try it it with a
>
simple example like {contents:"text"}? Can you post the exact
>
attributes you used?
I did - almost. That wasn't it, and the next thing wasn't it, and the thing after that wasn't it, but the next thing was it:
InDesign CS requires that the name of "applied paragraph style" in the find attributes match case-sensitively. InDesign 2.0.2 did not.
I happened to get two scripts that were all but identical up at the same time, and when one worked and the other didn't, I was able to track it down. I gotta say, it would have taken me _weeks_ to get from "doesn't understand the search message" to "I can't find a style by that name."
After that, it was just a matter of updating for normal kinds of application revision changes: search returning a list of one text item and InDesign CS not being able to apply a style to it, places I had to use "object reference to" in 2.0.2 no longer necessary, and so on. It looks like the script is now working. I may get to speed it up in some ways, but it looks like we can actually try using InDesign CS for real production.
Thanks, Shane! (And Jon, of course, though if he repeats it I'll deny it.)
--Matt
--
Matt Deatherage <email@hidden> <
http://www.macjournals.com>
I read this list in digest mode; copy me privately for faster responses
_______________________________________________
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.