I tried out the script some days ago, and it worked like a charm.  
Thanks.

For the email archives I can report that the format for local-url for  
relative paths simply is the filename. for example I used to have
   local-url = {file://localhost/Users/kdh/Work/papers/Paper.pdf}
which now is
   local-url = {Paper.pdf}

Sorry for being slow in reporting this.

Kasper

On Sep 24, 2007, at 2:30 AM, Christiaan Hofman wrote:

>
> On 24 Sep 2007, at 7:04 AM, Kasper Daniel Hansen wrote:
>
>> In a followup to the recent discussion about auto-file I found myself
>> in the position of wanting to share my bib file with a collaborator.
>> In my bib file every link is stored using a full path like
>>    Local-Url = {file://localhost/Users/kdh/Work/papers/...
>> I now want to email a tarball with everything, but the full path is
>> bothering me. He (and I) will be ok with using relative paths
>> (everything relative to the bib file), but when I change this in my
>> preferences and then choose "Consolidate linked file", the actual
>> entry in the bib file does not change.
>>
>> How should I handle that - both for now and in the future - I could
>> do a search and replace on the bib file but I am unsure as to what
>> the entry should be, as I really would like him to just untar
>> everything. So something like
>>    Local-Url = {file://~/Work/papers/...
>> does not necessarily cover it, as it assumes the directory structure
>> stays the same.
>>
>> Perhaps my problem is that I am experimenting with old entries?
>>
>> Thanks,
>> Kasper
>>
>
> I don't think Consolidate does anything when the file is not moved.
>
> You could use AppleScript to change the local-urls (see attached).  
> Or when you know the filenames contain no special characters (like  
> spaces etc) you could use Database Find & Replace to remove the  
> leading part.
>
> Christiaan
>
> <AbsoluteToRelativeFiles.scpt>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ 
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to