On Feb 18, 2010, at 11:14, Fischlin Andreas wrote:
> Dear Matthias,
>
> Write me privately, if you like, and I can give you AppleScripts doing this.
> You might need to adapt them though to your situation, but at least you
> wouldn't have to start from scratch. I plan to offer my stuff, in the
> meantime quite elaborate, on a web site, but I am so busy with IPCC issues
> these days, that I don't have the time to do this in the near future.
>
> Regards,
> Andreas
>
>
> ETH Zurich
> Prof. Dr. Andreas Fischlin
> Systems Ecology - Institute of Integrative Biology
> CHN E 21.1
> Universitaetstrasse 16
> 8092 Zurich
> SWITZERLAND
>
> [email protected]
> www.sysecol.ethz.ch
>
> +41 44 633-6090 phone
> +41 44 633-1136 fax
>
> Make it as simple as possible, but distrust it!
>
>
> <Fischlin Andreas.vcf>
> ________________________________________________________________________
>
> On 18/Feb/2010, at 10:53 , Matthias Brennwald wrote:
>
>> Dear all
>>
>> I am a BibDesk newbie, so please be patient...
>>
>> I have a BibTex library (*.bib file), which I edited using a plain text
>> editor until now. The cite keys are in the form "pXXXX", where XXXX is a
>> number (e.g. p4219). For many of the entries in this database I have a PDF
>> file (but not for all). The file names of these PDFs are the same as the
>> cite keys ("pXXXX.pdf", e.g. p4219.pdf). However, the *.bib file does not
>> contain any links to the PDF files. Now, I'd like BibDesk to recognize this
>> logic and to link the database entries to the corresponding PDF files. Is
>> there a way to do this? How?
>>
>> Matthias
>>
>> ----
>> Matthias Brennwald, Käferholzstrasse 173, CH-8046 Zürich, +41 44 364 17 03
Here's a simple applescript that should do what you want, just copy it in
AppleScript Editor and run it (you may need to undo some line wrapping from the
mail):
tell application "BibDesk"
set thePapersFolder to (papers folder & "/")
tell document 1
set thePubs to publications
repeat with thePub in thePubs
set thePub to contents of thePub
tell thePub
set thePath to thePapersFolder & cite key &
".pdf"
set theFile to POSIX file thePath
tell application "Finder" to set theFileExists
to (exists theFile)
if theFileExists and (POSIX path of linked
files does not contain thePath) then
add theFile to beginning of linked files
end if
end tell
end repeat
end tell
end tell
HTH,
Christiaan
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users