• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Quark 4.11 mac question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Problem running Common Lisp image from AppleScript
  • Next by Date: Re: Problem running Common Lisp image from AppleScript
  • Previous by thread: Quark 4.11 mac question
  • Next by thread: I would like to post to this list
  • Index(es):
    • Date
    • Thread