Quark Q&A : Big Thank You Jay ! and the next one...
Quark Q&A : Big Thank You Jay ! and the next one...
- Subject: Quark Q&A : Big Thank You Jay ! and the next one...
- From: bv022 <email@hidden>
- Date: Sun, 24 Nov 2002 00:27:48 +0100
Jay helped me out and I'm up and running now.
Went looking thru old files (since quark 1.1, saw "graphic script" and voila
my next question : why does it work if i delete the arrow-indicated line,
and why does it return an error if I leave it in ? Old script syntax ?
tell application "QuarkXPress"
activate
try
if (current box exists) ,
--------> and (box type obsolete of current box is picture box) ,
and ((data size of image 1 of current box) 1) then
tell front document
set bounds of image 1 of current box to proportional fit
set imageScale to scale of image 1 of current box as list
set imageHeight to item 1 of imageScale as real
set imageWidth to item 2 of imageScale as real
if imageWidth > imageHeight then
set newPercent to item 2 of imageScale
else
set newPercent to item 1 of imageScale
end if
set scale of image 1 of current box to {newPercent,
newPercent}
set offset of image 1 of current box to {0, 0}
end tell
else
display dialog "Oops didnt see an image box"
end if
on error errText number errNum
if errNum -128 then
beep (display dialog errText)
end if
end try
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.