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

Michael Sharpe msharpe at ucsd.edu
Thu Jan 19 01:54:01 CET 2012


On Jan 18, 2012, at 4:36 PM, Gary L. Gray wrote:

> 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.
> 

Hi Gary,

The way it is supposed to work is:

1. From Macros, select Open Macro Editor.
2.  A new item appears on the Macros menu---Add Macros from file
3. Select that and navigate to the downloaded (and unzipped) InsertReference.plist, and select Choose.
4. From Macro Editor window, move the location of Insert Reference if necessary, and change the command key, f necessary.

Michael




More information about the macostex-archives mailing list