On Aug 24, 2011, at 13:55, Malcolm Ross wrote:

> 
> On 20/08/2011, at 10:26 PM, Christiaan Hofman wrote:
> 
>> 
>> On Aug 20, 2011, at 14:56, Malcolm Ross wrote:
>> 
>>> 
>>> 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
>> 
>> You are aware that there are two templates here? And you did double-ckeck 
>> that both of them were installed and working, and checked the names in the 
>> script?
>> 
>> Christiaan
> 
> Yes, if by two templates you mean the template for citations in the ms and 
> the template for exporting a bibiography. The citation template works without 
> a problem, since, if I understand the ReplaceCite script correctly, it is 
> called earlier and I can see the results in the TextEdit file. It is simply 
> the export script that gives an error. The export script also formats the 
> reference in the preview window.

Did you run the applescript from AppleScript Editor? And were there any 
problems reported? Have you tried an applescript that only exports the 
bibliography?

> Is that normal behaviour?

It's a choice you apparently made in the UI.

> 
> - Malcolm
> 



------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to