re: Tex-Edit, Paste clipboard?
re: Tex-Edit, Paste clipboard?
- Subject: re: Tex-Edit, Paste clipboard?
- From: Greg <email@hidden>
- Date: Wed, 10 Oct 2001 11:14:36 -0700
>
Gnarlodious <email@hidden> wrote:
>
Will someone pleeeeeze send a tiny script that uses the "paste" command to
>
the selection in an open Tex-Edit window?
>
Please do not post obscure or full featured scripts, only the absolute
>
minimum to use the "paste command".
>
Thank you.
Try this:
tell application "Tex-Edit Plus"
activate -- must be activated
make new window
set the contents of window 1 to "stuff"
select contents of window 1
set the clipboard to selection of window 1 as styled text --must be
--styled text
set the contents of window 1 to "Other stuff"
select contents of window 1
paste
end tell
-Greg Robb