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:
Sun, 21 Jan 2007 18:55:39 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (70 lines)
Are you sure the name matches are exact.  Quark is case sensitive.


On Jan 21, 2007, at 6:42 PM, Lloyd Butler wrote:

> 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.
>>
>

ATOM RSS1 RSS2