On 18/08/2011, at 8:34 PM, Christiaan Hofman wrote:

> 
> On Aug 18, 2011, at 20:11, Malcolm Ross wrote:
> 
>> I have been trying to get Christian Hofman's ReplaceCite AppleScript 
>> working, in order to link BibDesk to TextEdit (or Nisus Writer). It works 
>> fine with the provided template APACitationTemplate, but fails with other 
>> templates, including one I have written myself. The odd thing is that the 
>> templates which cause  ReplaceCite to fail work fine when one does a 
>> straightforward Export via the BibDesk menu. 
>> 
>> I have used a debugger to check where the error occurs when the script is 
>> run, and it is at the point where the script tells BibDesk to export the 
>> references (which it has found in the TextEdit file). This gives a BibDesk 
>> Error 6.
>> 
>> Can anyone give me a clue as to what is going wrong here? I have been using 
>> BibDesk for years with LaTeX, so I am reasonably confident that my BibTeX 
>> library and the templates are OK.
>> 
>> - Malcolm
> 
> You get this error when BibDesk cannot find the template. Are you sure you 
> have installed a template with the name you're using in the script?

Yes, I've doublechecked. It's installed via BibDesk preferences (and it works 
with the Export menu item).

> Also, when you run the script from AppleScript Editor, do you get a more 
> descriptive error message?

No, nothing. The \cite{…} elements in the TexTEdit file are replaced with 
citations as they should be, but the script exits without writing a 
bibliography list to disk, with no error message. This was why I used a 
debugger.

Many thanks.

- Malcolm


------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to