• 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: Mac OS X, Classic, Quark XPress and Script Debugger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X, Classic, Quark XPress and Script Debugger


  • Subject: Re: Mac OS X, Classic, Quark XPress and Script Debugger
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 07 Oct 2002 09:57:36 +1000

On 7/10/02 8:11 AM +1000, Luca BASSINI, email@hidden, wrote:

> Look at this thing and please let me know what you think...
>
> The simple script (targeting Quark XPress) is the following:
>
> tell application "QuarkXPress Passport 4.11"
> tell document 1
> get width of bounds of current box
> end tell
> end tell
>
> I'm running XPress in my Classic environment. If I'm using Script Debugger
> 3.0.4 inside Jaguar 10.2.1, I get this result:
>
> Script 3untitled 12 started
> tell application "QuarkXPress Passport 4.11"
> get width of bounds of current box of document 1
> --> +data FXHM005BC58B;
> end tell
> Script 3untitled 12 finished
>
> The same result I get if i'm running Script Editor. But if I'm using Script
> Debugger 3.0.4 and I decide to launch it as a Classic Application, the
> result I get is this:
>
> Script 3untitled 12 started
> tell application "QuarkXPress Passport 4.11"
> get width of bounds of current box of document 1
> --> "32,375 mm"
> end tell
> Script 3untitled 12 finished
>
> Which is the right result. Anyone can tell me the reason?

Quark's built-in coercions are problematic under OS X. You have to use
something like:

tell application "QuarkXPress 4.11"
set x to width of bounds of current box
set x to coerce x to centimeter units
set x to coerce x to real
end tell

--
Shane Stanley, email@hidden
_______________________________________________
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.

References: 
 >Mac OS X, Classic, Quark XPress and Script Debugger (From: Luca BASSINI <email@hidden>)

  • Prev by Date: Re: 'sort' command-alternative?
  • Next by Date: Re: custome icon on an applescript in OS X?
  • Previous by thread: Mac OS X, Classic, Quark XPress and Script Debugger
  • Next by thread: Efficiently searching for file name
  • Index(es):
    • Date
    • Thread