[OS X TeX] Applescript problem

Eric van der Oord eric.vanderoord at gmail.com
Sun Dec 11 09:01:13 EST 2011


Hi all

I'm using LIon + TeXShop 3.06.

The following script worked with OSX Snow Leopard and TeXShop 2.xx :

%%%%%%%%

--applescript
tell application "System Events"
	tell process "TeXShop"
		click menu item "Copier" of menu 1 of menu bar item "Édition" of menu bar 1
	end tell
end tell

do shell script " pbpaste > texfmr ;   sed -i 1 -f ~/Library/conversion/mac-tex.txt texfmr ; pbcopy < texfmr ; rm texfmr ; rm texfmr1"

tell application "System Events"
	tell process "TeXShop"
		click menu item "Coller" of menu 1 of menu bar item "Édition" of menu bar 1
	end tell
end tell

%%%%%%%%%

Now the script aborts at the first line. The error message is as follows :

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2011-12-11 ? 14.44.35.pdf
Type: application/pdf
Size: 19742 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-tex/attachments/20111211/b802646c/attachment.pdf>
-------------- next part --------------


Has AppleScript changed his syntax once more ? Any hint ?

Eric


More information about the MacOSX-TeX mailing list