[OS X TeX] TexShop and AppleScript
Sergei Mariev
serguei.mariev at campus.lmu.de
Sat Nov 20 03:34:02 EST 2004
Thanks a lot, it is exactly what I was looking for!
>On Nov 19, 2004, at 1:48 AM, 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?
>
>tell application "TeXShop"
> set the selection of the front document to (the clipboard as text)
>end tell
>
>>(I get some information through a perlscript, then pipe it to the
>>clipboard and want to paste it at cursor.)
>
>Is your perl script running separately, or are you running that via
>applescript as well?
>If you can run it from your applescript, you can get the value
>directly, rather than redirecting it
>through the clipboard:
>
>e.g.,
> set my_str to do shell script "echo \"simple\""
>
>More details on "do shell script" at apple:
> http://developer.apple.com/technotes/tn2002/tn2065.html
>
>
>Matt
>
>--------------------- 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