• 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: What's the easy way to do this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the easy way to do this?


  • Subject: Re: What's the easy way to do this?
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 29 Jun 2002 08:48:07 +1000

On 29/6/02 3:03 AM +1000, Michael Sullivan, email@hidden, wrote:

> It's still a
> horribly broken object model (with horizontal and vertical not working,
> etc.), but at least you can get it to work.

I think you'll find they work for most classes. For example:

tell application "QuarkXPress 4.11"
tell current box
horizontal of offset of image 1
left of bounds
end tell
end tell
>
> Bounds of images has the interesting property that it is aways returns
> as numbers (not fixed, which has no unit info, but look like strings),
> and always returned points in my tests, no matter what I had set the
> measures to.

What it returns varies with the resolution of the image; IOW, it's useless.
It's also unnecessary, so you might as well just avoid it.

The big problem, however, is that QXP's coercions no longer work without the
explicit "coerce" command under Classic in OS X. So in the past you could
say:

set x to horizontal of offset of image 1 as point units as real

but under Classic/X you have to say:

set x to horizontal of offset of image 1
set x to coerce x to point units
set x to coerce x to real

This might well be fixed in v5, but that makes for an expensive bug fix,
especially given the price of QXP upgrades down here.

> Caramba. I'm really starting to think it's time to look at Indesign.

It has its own quirks, but it also has some very neat things. And they fix
bugs.

--
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: 
 >Re: What's the easy way to do this? (From: email@hidden (Michael Sullivan))

  • Prev by Date: Re: puzzled with script syntax error
  • Next by Date: Re: Load a run only Script from handler problems
  • Previous by thread: Re: What's the easy way to do this?
  • Next by thread: Re: What's the easy way to do this?
  • Index(es):
    • Date
    • Thread