• 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: Re: Quark Bounds Not Working Like it did
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Quark Bounds Not Working Like it did


  • Subject: Re: Re: Quark Bounds Not Working Like it did
  • From: "Christian Sonntag <email@hidden>" <email@hidden>
  • Date: Thu, 17 Dec 2009 00:26:29 +0100

Hi.

This one works works with AppleScript-Editor & ScriptDebugger, give it a try.

-- MacIntel MBP13, OS X 10.6.2, QXP 7.5
-- AppleScript-Editor 2.3, AppleScript 2.1.1 (118)
-- ScriptDebugger 4.5.3
--
tell application "QuarkXPress Passport"
set vBoxRef to a reference to generic box 1 of document 1
set {y1, x1, y2, x2} to bounds of vBoxRef as list
set x1 to (coerce x1 to real)
set y1 to (coerce y1 to real)
set x2 to (coerce x2 to real)
set y2 to (coerce y2 to real)
set vWidth to x2 - x1
set vHeight to y2 - y1
end tell
{x1:x1, x2:x2, y1:y1, y2:y2, vWidth:vWidth, vHeight:vHeight}

Regards,
Christian Sonntag

Am 16.12.2009 um 21:00 schrieb email@hidden:

Von: Jason Bourque <email@hidden>
Datum: 16. Dezember 2009 17:35:31 MEZ
An: AppleScript Users <email@hidden>
Betreff: Quark Bounds Not Working Like it did


Hello,

It has been a while since I have used this script.
It is very slow and the error I get is
"Can¹t get item 2 of {{"5.031\"", "5.607\"", "6.923\"", "8\""}}."


tell application "QuarkXPress 7.5"


       set {y1, x1, y2, x2} to (bounds of vBoxRef as list)

       set x1 to (x1 as inch units) as real -- Left
       set x2 to (x2 as inch units) as real -- Right
       set y1 to (y1 as inch units) as real -- Top
       set y2 to (y2 as inch units) as real -- Bottom

       set vWidth to x2 - x1
       set vHeight to y2 - y1

   end tell



-- 
Any help is appreciated.
Jason Bourque

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

This email sent to email@hidden

  • Prev by Date: (no subject)
  • Next by Date: Re: (no subject)
  • Previous by thread: Re: (no subject)
  • Next by thread: difficulties with read file applescript
  • Index(es):
    • Date
    • Thread