• 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
Placing images in Quark
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Placing images in Quark


  • Subject: Placing images in Quark
  • From: "Simon, Garry" <email@hidden>
  • Date: Fri, 2 Feb 2007 03:57:18 -0600
  • Thread-topic: Placing images in Quark

Hi, I have some problems concerning using a script to replace images in a QuarkXpress document. I use this script snippet:

 

tell application “QuarkXpress”

tell document 1

tell picture box x (I repeat through all the picture boxes)

set ImageScale to scale of image1

set ImageAngle to angle of image 1

set ImageOffset to offset of image 1

set image 1 to alias “my:picture:file”

set scale of image 1 to ImageScale

set angle of image 1 to ImageAngle

set offset of image 1 to ImageOffset

end tell

end tell

end tell

 

Here’s the first problem: if a picture box is not selected when the image is placed, Quark crashes. I can prevent this by setting the “selected of every picture box to false” at the beginning of the repeat loop, and then setting the selected of the one picture box to true before placing its image. A second problem arises at this point – pictures will not be placed in grouped picture boxes, and Quark returns no error when it can’t complete the script command to do so.

 

I’m working with a couple of limitations – the images I’m replacing don’t have the same extension as the ones originally placed, so Quark doesn’t recognize them as being modified and can’t update them by itself. Also, the documents belong to a client and can’t be modified by ungrouping the picture boxes.

 

I’m using QuarkXpress 6.5 on a G5 running OS 10.4.8.

 

Any thoughts?

 

Garry Simon

 _______________________________________________
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/mailman//archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Placing images in Quark
      • From: Peter Waibel <email@hidden>
  • Prev by Date: Script actions based on AD group membership
  • Next by Date: Re: Placing images in Quark
  • Previous by thread: Script actions based on AD group membership
  • Next by thread: Re: Placing images in Quark
  • Index(es):
    • Date
    • Thread