• 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: Requesting assistance with Quark.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Requesting assistance with Quark.


  • Subject: Re: Requesting assistance with Quark.
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 23 Jul 2015 16:07:53 +0200 (CEST)
  • Importance: Medium

Hi Santa,
 
It's been a long long time I have done something in quark....
How about this approach...
- Add 1 inch to the page
- Shift all elements
 
 
tell application "QuarkXPress"

tell document 1

set tool mode to drag mode

set EverySelection to select every generic box

set thelist to bounds of current box as list 

set newa to item 1 of thelist as real

set newb to item 2 of thelist as real

set newc to item 3 of thelist as real

set newd to item 4 of thelist as real

set bounds of current box to {newa + 1, newb, newc + 1, newd}

set pageHeight to get page height as real

set pageHeight to pageHeight + 1

set page height to pageHeight

end tell

end tell

 

Best regards,Jan

 

Op 23 juli 2015 om 12:34 schreef Brian Christmas <email@hidden>:

G’day Scripters.
 
I don’t think what I’m about to ask about is possible, but I’ve first posted on MacScripters, and the Quark Applescript forum, with no answers, so I’m turning to you learned folk.
 
I’m at present placing two text boxes at the top of a Quark 11 document, and reducing the top margin to it’s minimum of zero inches. I then have  to set the PPD of the Device section of the Print Dialog to my actual printer so the text boxes print within the adjusted margins.
 
However, in order to ensure I don’t overlap any possible text or images, I’d like to add 1 inch to the top of the document, and place the  text boxes within that added inch.
 
Trying to get the page height gives a figure such as 11” (eleven with an inch sign), which cannot be coerced to text or an integer.
 
Setting the page height to 12 sets it to 12 inches, but adds the extra at the bottom. Also however, the actual original page size could be any size at all.
 
Any advice as to whether this is possible, or advice that it’s impossible, please?
 
Regards
 
Santa
 
tell application "QuarkXPress"
activate
repeat until exists document frontmost
delay 0.1
end repeat
tell document frontmost
set page height to 12 # Was 11". Adds to bottom of page
set top margin to 0.0
end tell
end tell
 

 
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Requesting assistance with Quark. (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Distributing Automator actions via MacAppstore - Sandboxing, installation etc.
  • Next by Date: Re: Requesting assistance with Quark.
  • Previous by thread: Requesting assistance with Quark.
  • Next by thread: Re: Requesting assistance with Quark.
  • Index(es):
    • Date
    • Thread