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: Mon, 6 Jan 2003 23:30:33 +0100
On Mon, 6 Jan 2003, Glenn Kowalski wrote:
>
Does anyone have any ideas here? QuarkXpress 5 cannot copy a text
>
selection while retaining styles. QuarkXPress 4 and 3 work fine.
>
>
This works in QuarkXpress 4 but not 5. 5 says "Can't make or move
>
that element into that type of container."
>
>
tell front document
>
tell page 1
>
copy selection to story 1 of text box 1 of page 1
>
end tell
>
end tell
Hi Glenn,
why do you use 'page 1' twice? This works for me:
---
tell document 1 of application "QuarkXPress 5.01"
delete story 1 of text box 1 of page 1
copy contents of selection to after story 1 of text box 1 of page 1
end tell
---
The second line is for deleting any text which could be in text box 1.
Another possibility:
---
tell document 1 of application "QuarkXPress 5.01"
set story 1 of text box 1 of page 1 to ""
copy contents of selection to end of text box 1 of page 1
end tell
---
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.