On Jun 14, 2007, at 23:09, Niels Kobschätzki wrote:

> On 6/14/07, Adam R. Maxwell <[EMAIL PROTECTED]> wrote:
>>
>>
>> In addition, doing batch replacement on your BibTeX file with a  
>> text editor is dangerous in general, since you can't limit search  
>> scope by field.  This can lead to unwanted replacements, and in the  
>> worst case a corrupted file.  Using BibDesk or BibTool is much  
>> safer (especially since BibDesk gives you undo support).
>>
>
> Why can't I limit the scope to one field?
> I can search for
> Local-Url = {file://old/path/to/the/pdfs/
> and replace it by Local-Url = {file://new/path/to/the/pdf/
> Doesn't seem risky to me and limits it to one field.

As I said, it's dangerous in general, but that's a special case that  
is reasonably safe since you have a well-defined prefix to look for.   
Parsing the file with a real parser (as in BibDesk or BibTool; not a  
regex or other ad-hoc hack) and afterwards manipulating the data is  
the best way to ensure that you have valid BibTeX as an end result.

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

Reply via email to