Re: Quark 4.11 mac question
Re: Quark 4.11 mac question
- Subject: Re: Quark 4.11 mac question
- From: Jay <email@hidden>
- Date: Mon, 20 Oct 2003 23:50:25 -0500
Hi Peter,
This is kind of a rough script, but see if this helps (watch out for
wrapping lines):
--------------------------------
tell application "QuarkXPress 4.11"
activate
tell document 1
repeat with x from 1 to (count text boxes)
set tBound to text box x's bounds
set tList to {(coerce tBound to list)'s item 1 as string, (coerce
tBound to list)'s item 2 as string, (coerce tBound to list)'s item 3 as
string, (coerce tBound to list)'s item 4 as string}
if tList is {"5\"", "5.812\"", "5.611\"", "7.347\""} then --(change
this to correct bounds)
set text box x's color to "blue"
exit repeat -- if you only want to grab the first one
end if
end repeat
end tell
end tell
--------------------------------
Jay
On Monday, October 20, 2003, at 11:32 PM,
email@hidden wrote:
>
Date: Mon, 20 Oct 2003 21:24:08 -0500
>
Subject: Quark 4.11 mac question
>
From: "Peter D. Kincaid" <email@hidden>
>
To: <email@hidden>
>
>
Mac OS 9.2 Quark 4.11
>
Hey, does anybody know how to search a document for a text box by
>
bounds.
>
any help would be great
>
--
>
thanks
>
Pete
_______________________________________________
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.