• 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
Big thank you Jay, and the next question is...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Big thank you Jay, and the next question is...


  • Subject: Big thank you Jay, and the next question is...
  • From: bartbe <email@hidden>
  • Date: Sun, 24 Nov 2002 00:36:42 +0100

Jay helped me out with 2 very extensive emails, 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.

  • Follow-Ups:
    • Re: Big thank you Jay, and the next question is...
      • From: Jay Young <email@hidden>
    • Re: Big thank you Jay, and the next question is...
      • From: John Delacour <email@hidden>
  • Prev by Date: Re: lock the screen from the keyboard, win a prize
  • Next by Date: Re: FileMaker Pro, get image by reference
  • Previous by thread: Re: duplicate filename error, broken file commands in 10.2?
  • Next by thread: Re: Big thank you Jay, and the next question is...
  • Index(es):
    • Date
    • Thread