• 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: Scripting Quark libraries
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Quark libraries


  • Subject: Re: Scripting Quark libraries
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 08 Jun 2001 08:53:24 +1000

On 7/6/01 10:30 PM +1000, mark, email@hidden, wrote:

> In a production workflow I would like to use Quark libraries in my script.
> My idea is the following... In a library I have all my different modules
> used in the catalog. In my xml-file I can read which module name the client
> ordered, names as in the QXP library.
>
> Now what I want to do, is to copy an item from the QXP library on to the QXP
> document, placed at a specific set of coordinates, and the fill in the text
> and images, read from the xml-file.
>
> Does any of you fellow scripters have example code of how to access the QXP
> library and use the contents of it in a document.

Quark's libraries aren't scriptable.

Why not set up a normal Quark document, with each page containing a
different module (with all items in the module grouped). Then, to use a
particular module from page x you would:

tell application "QuarkXPress 4.11"
tell document "Faux lib"
set tool mode to drag mode
set selection to null -- in case something is already selected
set selected of generic box 1 of page x to true -- selects whole group
end tell
duplicate current box of document "Faux lib" to end of page y of document
"Catalog"
end tell

The catch is that if x is a left-hand page and y is a right-hand page, the
group will end up on page (y - 1). But you can work around that by then
selecting the duplicated group and adjusting its origin of bounds
accordingly.

--
Shane Stanley, email@hidden


References: 
 >Scripting Quark libraries (From: mark <email@hidden>)

  • Prev by Date: Re: Quark ps-file
  • Next by Date: Re: Retrieving properties
  • Previous by thread: Scripting Quark libraries
  • Next by thread: Re: Converting a nested list to return delimited string with TIDs
  • Index(es):
    • Date
    • Thread