Re: Quark 5 can't copy selection w/styles
Re: Quark 5 can't copy selection w/styles
- Subject: Re: Quark 5 can't copy selection w/styles
- From: Hans Haesler <email@hidden>
- Date: Tue, 7 Jan 2003 00:32:49 +0100
On Mon, 6 Jan 2003, Glenn Kowalski wrote:
>
Thanks, that works. Looks like the key is to use "after story 1."
You're welcome.
>
But I have another problem I'm hoping you can help with too.
Hey, I should be in bed... ;-)
>
How about doing the reverse? This doesn't work:
>
>
copy story 1 of text box 1 of page 1 to contents of selection
Yes, I see what you mean. At best the copy ends up in... text box 1.
One suggestion: save story 1 as XPress Tags and import the file to replace
the selection. The check box "Include Style Sheets" of the "Get Text..."
dialog must be activated (else the text is saved as ASCII), hence the
command 'set import styles to true':
---
set tmpFile to (path to startup disk as string) & "tmp.xtg"
tell application "QuarkXPress 5.01"
set import styles to true
tell document 1
save story 1 in tmpFile as "TEXT"
set contents of selection to alias tmpFile
end tell
end tell
---
That's all I can think of, for the moment.
---
Hans Haesler <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.