Re: Quark & Applescript
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