• 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 5.01 scripting syntax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark 5.01 scripting syntax


  • Subject: Re: Quark 5.01 scripting syntax
  • From: Bill Metzinger <email@hidden>
  • Date: Thu, 23 Oct 2003 08:33:17 -0400

Hey Kurt,
As Shane Stanely said you use the show document 2 to activate a document. Although it's not necessary. You can do all your magic with where the docs lie. As far as moving the boxes around, here's how I dot it. This example moves everything down and right by a half inch.

tell application "QuarkXPress"
activate
set AppleScript's text item delimiters to ""
tell page 1 of document 1
select every text box
set bd to bounds of group box 1 as list
set char to ((count of characters of (item 1 of bd as text))) as number
set y to ((items 1 thru (char - 1) of (item 1 of bd as text)) as text)
set char to ((count of characters of (item 2 of bd as text))) as number
set x to ((items 1 thru (char - 1) of (item 2 of bd as text)) as text)
set char to ((count of characters of (item 3 of bd as text))) as number
set h to ((items 1 thru (char - 1) of (item 3 of bd as text)) as text)
set char to ((count of characters of (item 4 of bd as text))) as number
set w to ((items 1 thru (char - 1) of (item 4 of bd as text)) as text)
set bd2 to {(y + 0.5), (x + 0.5), (h + 0.5), (w + 0.5)} as list --<< make your moves here
set bounds of group box 1 to bd2
end tell
set AppleScript's text item delimiters to tab
end tell


} Where'd you get the coconuts?
} We found them.
} Found them? In Mercea? The coconut's tropical!
} What do you mean?
} Well, this is a temperate zone.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Quark 5.01 scripting syntax
      • From: "K.Schreckengost" <email@hidden>
  • Prev by Date: [ABSTRACT] Styled Text to HTML (or RTF, or...)
  • Next by Date: Re: Need to script tracking in multiple Quark files-correction
  • Previous by thread: Re: Quark 5.01 scripting syntax
  • Next by thread: Re: Quark 5.01 scripting syntax
  • Index(es):
    • Date
    • Thread