[OS X TeX] TeXShop's Insert Reference macro and Lion

Gary L. Gray glgray at me.com
Wed Jan 18 19:36:53 EST 2012


On Jan 18, 2012, at 1:24 PM, Michael Sharpe wrote:

> On Jan 18, 2012, at 8:04 AM, Herbert Schulz wrote:
> 
>> Howdy,
>> 
>> Is there any TeXShop user with Applescript experience out there who is willing to get TeXShop's Insert Reference macro operating under Mac OS X 10.7 (Lion)? There has been a request for that on the TeXShop Forum.
>> 
>> Good Luck,
>> 
>> Herb Schulz
>> (herbs at wideopenwest dot com)
>> 
> 
> I believe I've fixed the file---available as a zip at
> 
> http://math.ucsd.edu/~msharpe/InsertReference.zip
> 
> I changed:
> 1. Applescript to Applescript direct so that messages appear without activating.
> 2. Changed the tell application "TeXShop" scopes.
> 3. Made use of the builtin ## variables
> 4. (Most critical) Changed 'front document' to 'document docname'
> 
> I think some of the problems may due to changes in the TeXShop dictionary rather than Lion.

Thanks Michael. I tried fixing this problem under Lion, but didn't have much luck.

Unfortunately, I am not able to get your fix to work, though I may not be implementing it correctly. Here is what I did.

(1) Downloaded and unzipped InsertReference.zip.

(2) Opened the resulting .plist file and copied everything from

--Applescript direct

which occurs immediately after <string> down to the

end if

which occurs two lines before </string>

(3) I then opened the Macro Editor in TeXShop, selected the Insert reference macro, selected all the text in the Content field, and pasted the text I copied from the .plist file.

When I then try and execute the macro, I get:

Expected end of line, etc. but found unknown token.

Am I doing something wrong?

Thank you.

Gary



More information about the MacOSX-TeX mailing list