On Jul 5, 2010, at 15:08, Fischlin Andreas wrote:

> There is certainly a way. First it depends on what really happened. If 
> everything remained really the same, then this problem should not occur. 
> 
> Perhaps the old pdf repository has been moved to the trash, which perhaps may 
> cause this problem.

This can be a problem if you've moved the PDF repository to the trash while 
BibDesk was running and then saved the .bib, because then all links will point 
to your papers folder in the trash (and the original location will be lost).

The way you should have done this is to first make sure you close the .bib 
file, then replace the the whole papers folder so that all (relative and 
absolute) paths of the linked files remain the same, then open the .bib file in 
BibDesk, inspect the links, and save the .bib file.

If you did not do this, and you've saved the .bib file in the mean time (with 
broken links), you may have a problem. In that case you should better use a 
backup of your .bib file and proceed as above. If you don't have a backup, 
well, then you've learned the hard truth that you should always save backups of 
your important files.

As a last resort, you may want to move your new papers folder to the location 
where your paper folder was when you saved your .bib file (which may be the 
trash), and if the links then work save the .bib file, move the papers folder 
back to where you want it, and save the .bib file again.

BibDesk will look for linked files first by relative path (relative to the .bib 
file). If it doesn't find a file, it will look for the file by full path. If it 
still doesn't find the file, it will look for the file object (that may have 
been moved) by file identifier. When  you save a .bib file, the links will be 
updated with the current link.

Christiaan

> Then AFAIK resetting the preferences of the pdf repository may help.

No, this has no effect on finding the linked files, it is only used for 
auto-filing (and old style linked file fields).

> 
> Then, if all this does not help, with some AppleScripting it should be 
> possible to fix the links. However, that depends also on the naming rules. 
> Previous discussions on this topic may already offer a solution (notably 
> Bibdesk-users forum, 17.Jan.2010: 
> http://sourceforge.net/mailarchive/forum.php?thread_name=4C44489C-36A5-4A3B-9EED-6217FF59E6E3%40gmail.com&forum_name=bibdesk-users).
>  Please search for those and check out the AppleScript I have provided.
> 
> I am happy to provide my latest script on this, if above link does not help 
> you already.
> 
> Regards,
> Andreas
> 
> 
> ETH Zurich
> Prof. Dr. Andreas Fischlin
> Systems Ecology - Institute of Integrative Biology
> CHN E 21.1
> Universitaetstrasse 16
> 8092 Zurich
> SWITZERLAND
> 
> andreas.fisch...@env.ethz.ch
> www.sysecol.ethz.ch
> 
> +41 44 633-6090 phone
> +41 44 633-1136 fax
> +41 79 221-4657 mobile
> 
>             Make it as simple as possible, but distrust it!
> ________________________________________________________________________
> 
> 
> 
> On 05/Jul/2010, at 14:37 , Anil N. Hirani wrote:
> 
>> In BibDesk I had links to all my PDF papers. I recently had to get a  
>> fresh copy of the directory containing all the papers (deleted the old  
>> directory, got a copy of an identical directory from another computer  
>> -- due to change in subversion server where all the papers were).
>> 
>> Now all the links to the papers are broken. Will I have to redo the  
>> links to files for all my 1500 entries or is there another way ?
>> 
>> Regards
>> Anil
>> 
>> 
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by Sprint
>> What will you do first with EVO, the first 4G phone?
>> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
>> _______________________________________________
>> Bibdesk-users mailing list
>> Bibdesk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
> 
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Bibdesk-users mailing list
> Bibdesk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to