Use a separator, as in <$publications>ITEM<?$publications>SEPARATOR</ 
$publications>. You can even use more complex templates to simulate  
componentsJoinedByCommaAndAnd, or anything you like. Here's an example:

<$publicatio...@count<3?>
<$publications>ITEM<?$publications> and </$publications>
<?$publicatio...@count?>
<$publicatio...@arraydroppinglastobject>ITEM, </ 
$publicatio...@arraydroppinglastobject>
and <$publicatio...@lastoneobjects>ITEM</$publicatio...@lastoneobjects>
</$publicatio...@count?>

Just look at some of the sample templates on the Wiki.

BTW, in the next release (nightly) you can also have templates for  
numbered citations. The difference is that in the script command  
generating/exporting the text you need to pass the full set of  
(ordered) publications with an extra "in" argument. Then any itemIndex  
property will be interpreted as the index in the full set rather than  
just the ones passed to the template. E.g. [<$publications><$itemIndex/ 
 ><?$publications>,</$publications>] will do the same thing as your  
Numbered3, BTW also [<$publications.itemind...@componentsjoinedbycomma/ 
 >] should then work.

Christiaan

On 19 Dec 2008, at 7:10 AM, Conan C. Albrecht wrote:

> I'm modifying my program to use regular BibDesk templates to format  
> the in-text references.  This will allow unlimited styles without  
> recoding the program. The following template:
>
> (<$publications>< 
> $ 
> pubAuthors 
> .lastName 
> .stringbyremovingt...@componentsjoinedbyandwithsingleetalaftertwo/>,  
> <$pubFields.Year/></$publications>)
>
> produces the following (on three references):
>
> (Albrecht et al., 2004Albrecht and Albrecht, 2005Albrecht et al.,  
> 2006)
>
> Note how the three references are smashed together.  I want to  
> separate the citations by a space+semicolon, as in:
>
> (Albrecht et al., 2004; Albrecht and Albrecht, 2005; Albrecht et  
> al., 2006)
>
> I've tried lots of template tags but can't get to this.  Any ideas  
> on how to modify the template?
>
> Thanks.
>
> ____________________________________
> Conan C. Albrecht, Ph.D.
> Information Systems Department
> Brigham Young University
> Email: co...@warp.byu.edu
> Phone: +1-801-805-1615
> Web/Blog: http://warp.byu.edu/
>
> On Dec 18, 2008, at 13:57, James Harrison wrote:
>
>> On Dec 18, 2008, at 3:45 PM, Christiaan Hofman wrote:
>>
>>> I've added support for non-applescript scripts as well as  
>>> application
>>> bundles to be linked in BibDesk's script menu, just put them in ~/
>>> Library/Application Support/BibDesk/Scripts/. Will be available
>>> whenever the nightly builds are available again.
>>
>> YESSS!!! Thanks, now I have a Christmas break project.
>>
>> Jim
>> UVa
>>
>> ------------------------------------------------------------------------------
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,  
>> Nevada.
>> The future of the web can't happen without you.  Join us at MIX09  
>> to help
>> pave the way to the Next Web now. Learn more and register at
>> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
>> _______________________________________________
>> Bibdesk-users mailing list
>> Bibdesk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


------------------------------------------------------------------------------
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to