• 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
Moving grouped objects in Quark 4.11
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Moving grouped objects in Quark 4.11


  • Subject: Moving grouped objects in Quark 4.11
  • From: mark <email@hidden>
  • Date: Tue, 12 Jun 2001 09:13:49 +0200

Hello fellow scripters

In a script where I am duplicationg objects from one document to another
(thanks to Shane), I am having problems when I want to place it on a
specific set of coordinates.

What I have done is to have the var theOrigins set to a list containing
something like {"0 mm", "0 mm", "266 mm", "15 mm"} but when I get to the
last line "set origin of bounds of boxIndex to theOrigins" QuarkXPress
returns an error "Some data was the wrong type" But theOrigins contains a
list : {"0 mm", "0 mm", "266 mm", "15 mm"} (from SD)

Sure hope you guy's can help me.

Best regards
Mark

-- Script
on modulPlacement(modulPage, x, y)
tell application "QuarkXPress Passport"
activate
open libDoc
tell document 1
set tool mode to drag mode
set selection to null -- in case something is already selected
set selected of generic box 1 of page modulPage to true --
selects whole group
end tell
set boxIndex to duplicate current box of document 1 to end of page 1
of document (bookingNr & ".qxd")

set theOrigins to {(y as string) & " mm", (x as string) & " mm",
(ACME replace "." in (y + modulWidth) with ",") & " mm", (ACME replace "."
in (x + modulHeight) with ",") & " mm"}
set origin of bounds of boxIndex to theOrigins

end tell
end modulPlacement
-- End script


  • Follow-Ups:
    • Re: Moving grouped objects in Quark 4.11
      • From: Shane Stanley <email@hidden>
    • Re: Moving grouped objects in Quark 4.11
      • From: Hans Haesler <email@hidden>
  • Prev by Date: Error geetting offset of char in errMsg
  • Next by Date: Re: Moving grouped objects in Quark 4.11
  • Previous by thread: [OS X] applet interfering with logout/shut down
  • Next by thread: Re: Moving grouped objects in Quark 4.11
  • Index(es):
    • Date
    • Thread