Re: Tex-Edit, Paste clipboard?
Re: Tex-Edit, Paste clipboard?
- Subject: Re: Tex-Edit, Paste clipboard?
- From: John W Baxter <email@hidden>
- Date: Wed, 10 Oct 2001 15:54:43 -0700
At 10:14 -0600 10/10/2001, Gnarlodious wrote:
>
Entity wemedge spoke thus:
>
>
>> Now I need to paste to the selected text, not a new window.
>
> Provided you have something selected in thr frontmost window, this works to
>
> paste over it:
>
>
>
> tell window 1 of application "Tex-Edit Plus"
>
> paste
>
> end tell
>
Still not working. For some reason the "paste" statement in the script
>
window gets hilited but the Tex-Edit window is unaffected.
You'll probably have to include an activate (you will unless Tex-Edit Plus
has been in front since what you feel are the clipboard contents were put
into the clipboard).
tell window 1 of application "Tex-Edit Plus"
activate
paste
end tell
Note: untested, as I don't have Tex-Edit. But...the issue is universal
(it goes back to the way the clipboard was handled in the
one-application-at-a-time days of 1984, and how that was hacked for more
than one app at a time, later). [Literally one-app-at-a-time: Finder quit
in the process of starting some other app.]
--John
--
John Baxter email@hidden Port Ludlow, WA, USA