MACSCRPT Archives

January 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Lively <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 17 Jan 2007 07:55:56 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
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.

-Mark

ATOM RSS1 RSS2