[OS X TeX] Applescript problem

Claus Gerhardt claus.gerhardt at uni-heidelberg.de
Sun Dec 11 15:32:44 CET 2011


I always use the commands

tell process "TeXShop"
			keystroke "c" using command down
			keystroke "v" using command down
		end tell


for the corresponding tasks.

Claus


On Dec 11, 2011, at 15:01, Eric van der Oord wrote:

> 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 :
> 
> <Capture d’écran 2011-12-11 à 14.44.35.pdf>
> 
> Has AppleScript changed his syntax once more ? Any hint ?
> 
> Eric----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: http://email.esm.psu.edu/mac-tex/
> List Archive: http://tug.org/pipermail/macostex-archives/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: http://email.esm.psu.edu/mailman/listinfo/macosx-tex
> 




More information about the macostex-archives mailing list