Subject: | |
From: | |
Reply To: | |
Date: | Sun, 21 Jan 2007 18:42:27 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Mark,
Thanks
I tried that one, and got
QuarkXPress got an error: Can't set paragraph 1 of every text box of
document 1 whose name = "sample.txt" to "hello"
It seems there is some sort of conversion error as it has an '=' after
name instead of 'is'. It gives you the same error if you put in the
wrong text box name, so I suspect the 'whose' is broken.
Then I tried "contains" instead of 'is" and it still tosses an error,
but it knows I had asked for 'contains'
Then I tried 'begins with" and it tosses an error with "starts with".
I guess I will just need to change the names of the text boxes so that
there are no duplicates.
Lloyd
> From: Mark Lively <[log in to unmask]>
>
> On Jan 17, 2007, at 7:50 AM, Lloyd Butler wrote:
>
>> ok, it is not so shocking knowing the application.
>>
>> I am in the process of moving to Quark 6.5 ( I know it is a couple of
>> versions old) from v3 and v4. It runs on the Intel machines where v3
>> or v4 do not.
>>
>> While testing my scripts, I noticed that in versions 3 and 4 if two
>> text boxes on the page had the same name, both would be filled in.
>>
>> In 6.5, it is only the top most text box that gets populated.
>>
>> If I take and manually select the other box and bring it to the top,
>> and rerun the script, that text box gets the text.
>>
>> Is there a way to get both filled in without changing one of the
>> names?
>>
>> tell application "QuarkXpress"
>> tell document "test.qxd"
>> set paragraph 1 of text box "sample.txt" to "hello world"
>>
> Set paragraph 1 of every text box whose name is "sample.txt" to "hello
> world"
>
>> end tell
>> end tell
>>
>> I have all the code in a script library that allows me to pass in the
>> layout name, paragraph, text box name and the text. If I need to
>> start to jump through hoops to handle this, then I need to know what
>> to test for to catch the 2+ text boxes with the same names.
>
> I am surprised that 3 and 4 didn't error on you.
>
|
|
|