Re: Quark 5 'every text' problem
Re: Quark 5 'every text' problem
- Subject: Re: Quark 5 'every text' problem
- From: Hans Haesler <email@hidden>
- Date: Fri, 18 Feb 2005 09:02:59 +0100
On Thu, 17 Feb 2005, Chitty, Butch wrote:
>Hi list!
> I need a way in Quark 5 to build a list of text boxes that contain a given
>string. We used this command in Quark 4.11:
>
> tell application Quark Xpress
> tell document 1
> set searchBoxes to (every text of every story whose
>it is searchString)
> end tell
> end tell
>
> 'every text of every story' doesn't seem to work in Q5. Does anyone have
>an idea how I can get around this?
Hi Butch,
when I run your script with QXP 4.11, the result is a list of
the... search string. Four boxes. Two of them contain the search string.
---
set searchString to "Chitty"
tell document 1 of application "QuarkXPress 5.01"
set searchBoxes to (every text of every story whose it is searchString)
end tell
--> {"Chitty", "Chitty"}
Not very useful, isn't it? Shouldn't there be something like
'object reference'?
---
set searchString to "Chitty"
tell document 1 of application "QuarkXPress 4.11"
set searchBoxes to object reference of text box 1 of ¬
(every text of every story whose it is searchString)
end tell
--> {generic box 2 of spread 1 of document "getBoxes.qxd" of application
"QuarkXPress 4.11", generic box 4 of spread 1 of document "getBoxes.qxd"
of application "QuarkXPress 4.11"}
With QXP 5.01 the same script works fine. The result:
-->{text box 2 of document "getBoxes.qxd" of application "QuarkXPress 5.01",
text box 4 of document "getBoxes.qxd" of application "QuarkXPress 5.01"}
Cheers,
Hans
---
Hans Haesler <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden