Re: Picturebox to graphic box
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