hallo Julia,
I use the following script for this (can't remember who is the
author). You can put it in your BibDesk-Skriptfolder and use it on
the selected database-entries.
Daniel
(*
This script adds a Prefix/Suffix to one field in all publications
selected
*)
set BibDeskFieldLib to (load script file ¬
((path to home folder as string) &
"Library:ScriptingAdditions:BibDeskFieldLib.scpt"))
set allFields to BibDeskFieldLib's allFields
tell application "BibDesk"
set srcFieldName to "Title"
if srcFieldName is not "false" then
set tgtFieldName to srcFieldName
try
set theResult to display dialog "Enter Prefix String:"
buttons
{"OK", "Cancel"} default button 1 default answer "{" as Unicode text
set theButtonReturned to the button returned of
theResult
set theAddString to the text returned of theResult
set thePublications to the selection of document 1
repeat with thePub in thePublications
try
set srcFieldValue to BibDeskFieldLib's
getField(srcFieldName,
thePub)
set tgtFieldValue to theAddString &
srcFieldValue
BibDeskFieldLib's
setField(tgtFieldName, tgtFieldValue, thePub)
end try
end repeat
end try
end if
set srcFieldName to "Title"
if srcFieldName is not "false" then
set tgtFieldName to srcFieldName
try
set theResult to display dialog "Enter Suffix String:"
buttons
{"OK", "Cancel"} default button 1 default answer "}" as Unicode text
set theButtonReturned to the button returned of
theResult
set theAddString to the text returned of theResult
set thePublications to the selection of document 1
repeat with thePub in thePublications
try
set srcFieldValue to BibDeskFieldLib's
getField(srcFieldName,
thePub)
set tgtFieldValue to srcFieldValue &
theAddString
BibDeskFieldLib's
setField(tgtFieldName, tgtFieldValue, thePub)
end try
end repeat
end try
end if
end tell -- Bibdesk
Am 15.07.2007 um 20:32 schrieb Julia Brueck:
> Hi all,
>
>
> first of all I want to thank the makers of bibdesk for creating and
> maintaining
> (!) the best bibtex database I ever used on Mac or PC!
>
> Here`s my question.
> I have to replace all instances of
>
> title = {documentname}
>
> in Articles (or else, if it is not possible to include only
> articles, then in all
> entry-types) with
>
> title = {{documentname}}
>
> Can I do that with BibDesk?
>
> Thanks for any answer,
> Julia
> -----
> [EMAIL PROTECTED]
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users