[OS X TeX] Re: Another feature request

Ramón Figueroa-Centeno ramonf at hawaii.edu
Sat May 29 15:33:20 EDT 2010


Aloha,

A simple applescript will give you what you want. Save it in the Macros menu
and assign the key "0" to it.

Enjoy!

Ramón

-- Applescript direct

tell application "TeXShop"
	activate
	
	try
		path of the front document
	on error
		-- There is no front document  or it has not ever been saved
		return
	end try
	
	set doc_name to the name of the front document
	set doc_name to do shell script "basename " & quoted form of doc_name & "
.tex"
	log doc_name & " Console"
	
	try
		set the index of the window named (doc_name & " Console") to 1
	end try
end tell

-- 
View this message in context: http://macosx-tex.576846.n2.nabble.com/Another-feature-request-tp5116320p5117108.html
Sent from the MacOSX-TeX mailing list archive at Nabble.com.



More information about the MacOSX-TeX mailing list