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

Re: QuarkXPress Scripting Question


  • Subject: Re: QuarkXPress Scripting Question
  • From: Dana Hill <email@hidden>
  • Date: Wed, 2 Feb 2005 11:06:46 -0500

On Feb 2, 2005, at 2:01 AM, Hans Haesler wrote:

On Wed, 2 Feb 2005, Dana Hill wrote:

(...) My question is
probably relatively simple, for some, but I'd like to modify my script
so that the chart is placed where it belongs, in the column surrounded
by text. I believe I have a fairly complicated way to accomplish this,
but does anyone have an easy suggestion I may have overlooked?

I can certainly provide script snippets, if necessary. Please also let
me know if any of the above is confusing or misleading. Thanks in
advance.

Dana,

what are the versions of your QuarkXPress and Mac OS?

I have developed several scripts which are anchoring picture boxes.
So, if you send me the script which imports the images and the
XPress document, I think I can show you how to modify your script.

Regards,
Hans

---
Hans Haesler <email@hidden>


Hi Hans,

I'm running QuarkXPress 6.5 on OS X 10.3.7.

Here's the snippet that imports and places the image...

_______________________________
on PlacePictureBox()

tell application "QuarkXPress"
activate
tell page currentPage of document reportFile
show
set dimensionthree to pixelDimension2 / 28 * 0.778 + 1.914 as number


if chartperpagecounter is 1 then
make picture box at beginning with properties {bounds:{"1.914 cm", "20.6 cm", pixelDimension2 / 28 * 0.778 + 1.914, "29.53 cm"}, color:"white"}
set dimensionthreenew to dimensionthree
else
make picture box at beginning with properties {dimensionthreenew + 0.635, "20.6 cm", pixelDimension2 / 28 * 0.778 + dimensionthreenew + 0.635, "29.53 cm"}, color:"white"}
end if


set chartperpagecounter to chartperpagecounter + 1


tell picture box 1 --
"Name Overlay Box"
set image 1 to alias (imageFound & EPSFolderPath & ":" & epsImage & ".eps" as list)
set pixelDimension2 to {}
set pixelDimension1 to {}
end tell
end tell
end tell


end PlacePictureBox
_______________________________

Ideally, I'd like the pictures to flow with the text in the text boxes. Short of using a bunch of inefficient copy and paste functions (and perhaps this is the best way...) to place them there, I'm not sure how to accomplish this. The reason I'd like them to be part of the text flow is because I will be moving to an xml environment shortly. The layout will still occur in QuarkXPress, but when an analyst changes the text I'd like to be able to reimport the xml and use my scripts to make the changes relatively painless.

I'll attach one page of a QuarkXPress document so you can see what I'm trying to do, if that is not against the list rules. Does anyone know if attaching a file is against the rules? I can't recall seeing it done, so I figured I should check first.

Thank you,
Dana

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: QuarkXPress Scripting Question
      • From: Hans Haesler <email@hidden>
References: 
 >Re: QuarkXPress Scripting Question (From: Hans Haesler <email@hidden>)

  • Prev by Date: Re: duplicate songs in iTunes
  • Next by Date: Re: QuarkXPress Scripting Question
  • Previous by thread: Re: QuarkXPress Scripting Question
  • Next by thread: Re: QuarkXPress Scripting Question
  • Index(es):
    • Date
    • Thread