Greg, 

Doesn't +itemByParsingPDFFile: do this now?  I just glanced at the code, and it 
seems to try and use the file name as a search term first.

+ (id)itemByParsingPDFFile:(NSString *)pdfPath;
{
        BibItem *bi=nil;
        
        // see if we can find any bibliographic info in the filename
        NSString *pubMedSearch=nil;
        pubMedSearch=[[[pdfPath lastPathComponent] 
stringByDeletingPathExtension] 
stringByMakingPubmedSearchFromAnyBibliographicIDsInString];
        if(pubMedSearch!=nil){
                bi=[BibItem itemWithPubMedSearchTerm:pubMedSearch];
                if(bi!=nil) return bi;
        }

....

On Jun 12, 2010, at 12:39 PM, Gregory Jefferis wrote:

> The hidden pref that used to allow this was removed on 2009-01-24 svn commit
> 14128.  Personally I would have been happy for it to stay, but I guess there
> is some logic in removing left over functionality that has no UI interface.
> Now it would be necessary either to add it back or use some kind of
> applescript.  You could presumably also use the older version 1.3.19 still
> available for download on sourceforge.
> 
> Best,
> 
> Greg.
> 
> FWIW I've attached a patch that adds the pref back.
> 
> 
> On 2010-06-12 18:45, "Thomas Willson PT MS PCS ATC" <[email protected]>
> wrote:
> 
>> I didn't make any changes to anything inside the bibdesk.app bundle.  I have
>> tried both of the following terminal commands, is there anything wrong with
>> the syntax?
>> 
>> defaults write -app Bibdesk BDSKShouldParsePDFToGeneratePubMedSearchTerm 
>> -bool
>> true
>> 
>> defaults write edu.ucsd.cs.mmccrack.bibdesk
>> BDSKShouldParsePDFToGeneratePubMedSearchTerm -bool true
>> 
>> Thanks,
>> 
>> Tom
>> 
>> On Jun 12, 2010, at 12:00 PM, Christiaan Hofman wrote:
>> 
>>> 
>>> On Jun 12, 2010, at 17:25, Thomas Willson PT, MS, ATC wrote:
>>> 
>>>> Christiaan,
>>>> 
>>>> Thanks, I changed the hidden pref and still no luck (I double checked
>>>> the preference file in the Bibdesk.app package to make sure it was set
>>>> to true.)
>>>> 
>>>> Any suggestions?
>>>> 
>>>> Thanks,
>>>> 
>>>> Tom
>>>> 
>>>> Thomas Willson PT, MS, PCS, ATC
>>>> [email protected]
>>>> 
>>> 
>>> Huh? You should not do anything inside the bibdesk.app bundle!
>>> 
>>> Christiaan
>>> 
>>>> 
>>>> 
>>>> On Fri, Jun 11, 2010 at 4:44 PM, Christiaan Hofman <[email protected]>
>>>> wrote:
>>>>> 
>>>>> On Jun 11, 2010, at 22:06, Thomas Willson PT MS PCS ATC wrote:
>>>>> 
>>>>> I used to be able to drag a pdf file into Bibdesk that was named with the
>>>>> PMID and it would automatically create the citation.  This has not been
>>>>> working for me for some time.  Certain files I am able to drag over, (no
>>>>> matter what they are named) and Bibdesk adds the correct citation (I guess
>>>>> it is pulling the PMID or DOI info from the pdf itself.)
>>>>> 
>>>>> Is there an additional plugin required for Bibdesk to look for the PMID in
>>>>> the filename?  This was the most reliable way of adding new citations from
>>>>> PDF, especially when the PDF is a scanned document.
>>>>> 
>>>>> Thanks,
>>>>> 
>>>>> Tom
>>>>> 
>>>>> Thomas Willson PT MS PCS ATC
>>>>> [email protected]
>>>>> 
>>>>> You need to set a hidden pref BDSKShouldParsePDFToGeneratePubMedSearchTerm
>>>>> to get this, see the Wiki for details.
>>>>> Christiaan
>>>>> 
>>>>> ---------------------------------------------------------------------------
>>>>> ---
>>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>>>> lucky parental unit.  See the prize list and enter to win:
>>>>> http://p.sf.net/sfu/thinkgeek-promo
>>>>> _______________________________________________
>>>>> Bibdesk-users mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>>>>> 
>>>>> 
>>>> 
>>>> ----------------------------------------------------------------------------
>>>> --
>>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>>> lucky parental unit.  See the prize list and enter to win:
>>>> http://p.sf.net/sfu/thinkgeek-promo
>>>> _______________________________________________
>>>> Bibdesk-users mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>>> 
>>> 
>>> 
> ----------------------------------------------------------------------------->>
> -
>>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>>> lucky parental unit.  See the prize list and enter to win:
>>> http://p.sf.net/sfu/thinkgeek-promo
>>> _______________________________________________
>>> Bibdesk-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>> 
>> Thomas Willson PT MS PCS ATC
>> [email protected]
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> ThinkGeek and WIRED's GeekDad team up for the Ultimate
>> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
>> lucky parental unit.  See the prize list and enter to win:
>> http://p.sf.net/sfu/thinkgeek-promo
>> _______________________________________________
>> Bibdesk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
> 
> <0001-Add-back-Parsing-of-filenames-containing-only-digits.patch>------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate 
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
> lucky parental unit.  See the prize list and enter to win: 
> http://p.sf.net/sfu/thinkgeek-promo_______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to