• 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: Quark & Applescript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark & Applescript


  • Subject: Re: Quark & Applescript
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 08 Nov 2000 19:48:38 +1100

On 8/11/00 7:28 PM +1000, Hans Haesler, email@hidden, wrote:

> This doesn't work for me when there is only one selected box.
> The error message (in French :-( says something about the data
> not being in the expected type and 'object reference' is selected.

Gee, I'm not having much luck today. Here's my log:

tell application "QuarkXPress 4.11"
get object reference of text box 1 of document 1 whose selected = true
--> generic box 1 of spread 1 of document "Document1"
get offset of last character of last line of generic box 1 of spread 1 of
document "Document1"
--> 18
save text from character 1 to character 19 of generic box 1 of spread 1 of
document "Document1" in "Macintosh HD:Sometext"
end tell

Any ideas of why the difference?
>
> And how do you make sure that you get the aimed box? Another error
> is generated when the box is not the first one of linked boxes.

Hey, I was trying to keep it simple...

--
Shane Stanley, email@hidden


  • Follow-Ups:
    • Re: Quark & Applescript
      • From: Hans Haesler <email@hidden>
References: 
 >Re: Quark & Applescript (From: Hans Haesler <email@hidden>)

  • Prev by Date: Re: Quark & Applescript
  • Next by Date: Re: Another FMP question
  • Previous by thread: Re: Quark & Applescript
  • Next by thread: Re: Quark & Applescript
  • Index(es):
    • Date
    • Thread