On 26 Mar 2008, at 1:21 PM, Miguel Ortiz-Lombardía wrote:

Thank you, Christiaan.

Ooops, it was quite trivial.
However, I have used it as you say... and still I get almost nothing. For example, one of my libraries has more than 400 entries. I know I have papers for at least 50 of them, yet the File Matcher only finds one... My script finds many. It also makes many false positives (files linked to the wrong entry) mainly due to the fact that 'mdfind' cannot use globbed text

Probably you find so many more matches (including many negatives) is that you search for words in the abstract. That seems to me a very unreliable way to match files.

and possibly some false negatives (entries not getting files that match them) with various reasons: scanned PDFs, etc.

Those won't work in either way.



I wanted to add an entry to my script in the Wiki but I don't seem able to create an account :-(

You need a password, I can give you one if you want (I think). I need a username.

Christiaan


In the meantime, if someone is interested, the script can be downloaded from:

http://www.ysbl.york.ac.uk/~mol/Another%20file%20matcher.scpt.gz

This is a brief description of the script:
This script takes a selection of publications in a BibDesk library,
asks for a folder where to look for possible files matching the selected entries


uses 'mdfind' to try to identify these possibly matching files.
To do so, it uses the Title of the entry plus the first 90 characters in the Abstract
field of the entry as the searching argument for 'mdfind'


Of course, it works only if the title and the abstract are included in the file.
This is the case usually for PDF files, except for scanned ones.
The script can be modified to get meaningful text from any other field in the entries.



It can be left running unattended, in which case every file matching the criteria is linked to the publication. This normally results in many false positives, but may be useful for medium/big-size libraries. Because the files are not autofiled, the user has


a chance to select later what to keep linked and what to unlink and, when satisfied, to
auto file manually.

Expectedly, it's quite slow...
There is a lot of margin for improvement...
Please, use it at your own risk! Backup your library first, at least. I'm just a novice with Applescript...

Cheers,


Miguel

2008/3/24, Christiaan Hofman <[EMAIL PROTECTED]>:

On 24 Mar 2008, at 11:20 AM, Miguel Ortiz-Lombardía wrote:
Hmm, that's what I thought. Except that I have never managed to convince the "File Matcher" to do what I want... It indexes the files for ages and never finds anything. And the indexation is redone next time I look for something, so I have not a clear idea on what's going on... I assume this must be me doing something wrong, but I have failed to find a clear (to me) documentation for the File Matcher in the manual or the wiki. Could you please point me to such info?

Thanks!


You have to choose 1 or more documents you want to match to, and a bunch of files to match (which you can add one by one or by adding folders). The file matcher indexes the files (which takes some time, but it happens in the background) and tries to search the index for the title and the first author of each publication in the document(s). It then displays the matches it finds. YMMV.

Christiaan


Miguel

2008/3/24, Christiaan Hofman <[EMAIL PROTECTED]>:
The best place to link scripts is on the Wiki, because that will stay around.

What you describe thugh sounds very much like the build in File Matcher.

Christiaan

On 24 Mar 2008, at 9:35 AM, Miguel Ortiz-Lombardía wrote:
Hi all,

With Christiaan's help I managed to write an Applescript that takes a selection of publications and searches, via the Spotlight mdfind program, for files that may correspond to them in a directory where I have accumulated for years PDF files with names not following any particular rule. The script then asks me whether to link these files or not. Being myself very unexperienced in Applescript, I thought that someone more proficient might be interested in the script and perhaps show a way to improve it. As it is, it runs quite slowly, but my main concern is not that, but the fact that BibDesk is blocked until the end of the script execution.

My question is: may I send the script to this list or there is a better option or a more appropriate forum?

Cheers,


Miguel
--
http://www.pangea.org/mol/spip.php?rubrique2
~ ~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Je suis de la mauvaise herbe,
Braves gens, braves gens,
Je pousse en liberté
Dans les jardins mal fréquentés!
Georges Brassens -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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




--
http://www.pangea.org/mol/spip.php?rubrique2
~ ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Je suis de la mauvaise herbe,
Braves gens, braves gens,
Je pousse en liberté
Dans les jardins mal fréquentés!
Georges Brassens -------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


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




--
http://www.pangea.org/mol/spip.php?rubrique2
~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Je suis de la mauvaise herbe,
Braves gens, braves gens,
Je pousse en liberté
Dans les jardins mal fréquentés!
Georges Brassens -------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to