• 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: Xpress 4.11 Scripting Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xpress 4.11 Scripting Question


  • Subject: Re: Xpress 4.11 Scripting Question
  • From: Jay Young <email@hidden>
  • Date: Mon, 25 Mar 2002 23:31:55 -0600

Hi Steve,

This is a rough script, but hopefully it will give you some idea's for a
solution. Basically, it will add a new page to the right side of page
1, then pull either the picture box and/or text box information to the
new page and finally delete the original page (which is page 3 now). It
seemed to work okay with Quark 4.1 on OS X. Hope it helps!

Jay

-------------------------------------------------------------------------
tell application "QuarkXPress"
activate
tell document 1

make page at end of spread 1

try
delete text box 1 of page 2 --(in case it adds a text box
to the new page)
end try

set CntOfTxtBx to count of text boxes of page 3
set CntOfPictBx to count of picture boxes of page 3

repeat with Pictr from 1 to CntOfPictBx
set Bnds to bounds of picture box Pictr of page 3
set BxImage to image 1 of picture box Pictr of page 3
make picture box at end of page 2 with properties [NO BREAK]
{bounds:Bnds, runaround:none runaround}
set image 1 of picture box Pictr of page 2 to BxImage
end repeat

repeat with Txt from 1 to CntOfTxtBx
set Bnds to bounds of text box Txt of page 3
make text box at end of page 2 with properties [NO BREAK]
{bounds:Bnds, runaround:none runaround}
set previous text box of text box Txt of page 3 to [NO BREAK]
text box Txt of page 2
end repeat

delete page 3

end tell --(document 1)
end tell --(Quark)
------------------------------------------------------------------------



On Monday, March 25, 2002, at 06:20 AM, Steve Thompson wrote:

> Could someone tell me (or point to me to the answer for) how to do in
> script
> something in Xpress that I can do easily with a mouse.
>
> When my script runs it creates two pages. Page one appears to the right
> of
> the center line in the document layout and then page two appears below
> and
> to the left - standard behavior.
>
> Occasionally (but not always), I need these to pages to be a spread. I
> just
> drag page 2 next to page one and I have a spread - this happens when the
> page contents share a common headline. That's the action I would like to
> script but I can't find the terminology. Putting Page 2 after page 1
> doesn't
> do anything (I assume because it already is after page 1).
>
> If Page1Headline = Page2Headline then
> tell application "Quark Xpress"
>
> -- rearrange pages
>
> end tell
> End if
>
>
> Any pointers gratefully received.
>
> Steve
> _______________________________________________
> 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.
_______________________________________________
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.

References: 
 >Xpress 4.11 Scripting Question (From: Steve Thompson <email@hidden>)

  • Prev by Date: Re: Zoom window / fit screen? How to with applescript?
  • Next by Date: Re: Zoom window / fit screen? How to with applescript?
  • Previous by thread: Xpress 4.11 Scripting Question
  • Next by thread: Scripting Acrobat - Linkannotations
  • Index(es):
    • Date
    • Thread