• 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: Picturebox to graphic box
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Picturebox to graphic box


  • Subject: Re: Picturebox to graphic box
  • From: Peter Waibel <email@hidden>
  • Date: Mon, 18 Dec 2006 20:08:20 +0100

Hi Jan,


tell application "QuarkXPress"
tell document 1
--return properties of picture box 1
set myBounds to bounds of picture box 1
make new graphic box at beginning with properties {bounds:myBounds}
delete picture box 1
return properties of generic box 1
end tell
end tell

Yes it's a possibility ... But this would mean that I have to 'catch' all
possible properties from the picture box that I want to replace...

Yes you have to catch them. set pictureBoxProps to properties of picture box 1

Meaning for example if the box has a 'linear blend' with the script below it
would be lost...

Right

Let's say this is the way to go, is there an easy way to " inherit" all the
necessary properties?

I think there is a bug in Quark. The 'coercion' from picture to graphic box does not work!
Maybe someone knows a hidden trick. If you don't find the guy with the trick
you must catch all the properties and set those you need to the new graphic box.


Unfortunatelly there is no way to set all the properties derived from the picture
with a single step to the new graphic box!


set properties of graphic box 1 to pictureBoxProps won't work!

You can try to set more tham one property at once

set properties of graphic box 1 to {bounds:bounds of pictureBoxProps, blend:blend of pictureBoxProps }

In the worst case you will end up with:

set blend of graphic box 1 to blend of pictureBoxProps
set bounds of graphic box 1 to bounds of pictureBoxProps

Good luck!

Peter













_______________________________________________
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: Picturebox to graphic box
      • From: Stan Cleveland <email@hidden>
References: 
 >Re: Picturebox to graphic box (From: Jan Bultereys <email@hidden>)

  • Prev by Date: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Next by Date: Re: Picturebox to graphic box
  • Previous by thread: Re: Picturebox to graphic box
  • Next by thread: Re: Picturebox to graphic box
  • Index(es):
    • Date
    • Thread