[OS X TeX] TexShop and AppleScript

Sergei Mariev serguei.mariev at campus.lmu.de
Fri Nov 19 07:30:53 EST 2004


Really? ...  I have made TexShop copy things to clipboard, like that:

tell application "TeXShop"
  set the clipboard to (content of selection of front document) as string
  end tell

which works fine...

So, I thought by analogy there should be a way to do the opposite... 
What a pity!

But thanks so much for replying!

As far as I know TeXShop doesn't understand a command like that. You 
have to pass the command to BBEdit, e.g.

Claus

On 19.11.2004, at 10:48, Sergei Mariev wrote:

Hello,

this might be a very simple question, the fact is I know very little 
about AppleScript...

What is the correct way to tell the TexShop (I am using v. 1.34 now) 
to paste the content of the clipboard (text) at cursor in the front 
document?

(I get some information through a perlscript, then pipe it to the 
clipboard and want to paste it at cursor.)

Thanks for any suggestions!

Sergei Mariev As far as I know TeXShop doesn't understand a command 
like that. You have to pass the command to BBEdit, e.g.

Claus

On 19.11.2004, at 10:48, Sergei Mariev wrote:

Hello,

this might be a very simple question, the fact is I know very little 
about AppleScript...

What is the correct way to tell the TexShop (I am using v. 1.34 now) 
to paste the content of the clipboard (text) at cursor in the front 
document?

(I get some information through a perlscript, then pipe it to the 
clipboard and want to paste it at cursor.)

Thanks for any suggestions!

Sergei Mariev
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>



--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>

--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list