Re: [Bibdesk-users] Can't preview imported citation

2021-09-25 Thread Fischlin Andreas
I agree, would really be nice. But the problem is that the doi2bib website 
offers as the default button only the 'get BibTeX’ button and I found no 
solution to get the result into the clipboard, i.e. how to click the button 
‘Copy Bib to Clipboard’ I would know how to trigger via AppleScript in a robust 
manner. Clicking via page/window coordinates is probably not working as the 
size of the window varies all the time. We would need to ask the doi2bib people 
to implement such a fieature, e.g. by making the ‘Copy Bib to Clipboard’ button 
the default button once the ‘get BibTeX’ button has been clicked successfully. 
Then all would be easy to implement as you suggest.

Andreas

ETH Zurich
Prof. em. Dr. Andreas Fischlin
IPCC Vice-Chair WGII
Systems Ecology - Institute of Biogeochemistry and Pollutant Dynamics
CHN E 24
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch/people/andreas.fischlin.html

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 595-4050 mobile

 Make it as simple as possible, but distrust it!



___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Can't preview imported citation

2021-09-25 Thread Fischlin Andreas
I agree, would really be nice. But the problem is that the doi2bib website 
offers as the default button only the 'get BibTeX’ button and I found no 
solution to get the result into the clipboard, i.e. how to click the button 
‘Copy Bib to Clipboard’ I would know how to trigger via AppleScript in a robust 
manner. Clicking via page/window coordinates is probably not working as the 
size of the window varies all the time. We would need to ask the doi2bib people 
to implement such a fieature, e.g. by making the ‘Copy Bib to Clipboard’ button 
the default button once the ‘get BibTeX’ button has been clicked successfully. 
Then all would be easy to implement as you suggest.

Andreas


ETH Zurich
Prof. em. Dr. Andreas Fischlin
IPCC Vice-Chair WGII
Systems Ecology - Institute of Biogeochemistry and Pollutant Dynamics
CHN E 24
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch/people/andreas.fischlin.html

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 595-4050 mobile

 Make it as simple as possible, but distrust it!










On 24/09/2021, at 12:00, Dr Eberhard W Lisse 
mailto:e...@lisse.na>> wrote:


Andreas,

That doesn't help that much because you still have to manually copy to
the Buffer.

What would really, really be sexy would be copying the DoI into the
Clipboard (CMD-C) constructing the complete link from the Clipboard
(using pbpaste?)  and then pipe the resulting BIB entry through pbcopy
into the Clipboard again and then make BibDesk take the entry from the
clipboard :-)-O

el


On 24/09/2021 11:27, Fischlin Andreas wrote:
[...]
Usage Run this script, preferably the DOI of the wanted reference
already in the clipboard, and then click button 'Copy Bib to
Clipboard'.  Paste the clipboard into any BibTeX manager such as
BibDesk.
[...]
--
Dr. Eberhard W. Lisse   \ /   Obstetrician & Gynaecologist
e...@lisse.na / *  |  Telephone: +264 81 
124 6733 (cell)
PO Box 8421 Bachbrecht  \  /  If this email is signed with GPG/PGP
10007, Namibia   ;/ Sect 20 of Act No. 4 of 2019 may apply
 Book your Covid-10 Vaccination at https://c19.idtoday.com.na


___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users


Re: [Bibdesk-users] Can't preview imported citation

2021-09-25 Thread Fischlin Andreas
Thanks, Christiaan. Good to know.

Andreas


ETH Zurich
Prof. em. Dr. Andreas Fischlin
IPCC Vice-Chair WGII
Systems Ecology - Institute of Biogeochemistry and Pollutant Dynamics
CHN E 24
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch/people/andreas.fischlin.html

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 595-4050 mobile

 Make it as simple as possible, but distrust it!










On 24/09/2021, at 23:59, Christiaan Hofman 
mailto:cmhof...@gmail.com>> wrote:

“using search term" uses PubMed to download the bibliographic information (by 
default), basically using the same method as a (PubMed) search group. How well 
that works probably depends on what type of publication you are looking for. 
Using the “from” argument essentially does the same thing as pasting on the 
main table and New Publication from Clipboard, which for a DOI string gets 
bibtex data from the DOI site. That probably is valid more generally.

Christiaan


On 24 Sep 2021, at 17:46, Fischlin Andreas 
mailto:andreas.fisch...@env.ethz.ch>> wrote:

Dear Christiaan,

Indeed. I have so far always used only

set theDOI to (get the clipboard as string)
tell front document of application "BibDesk"
set theImportPubs to import for search term theDOI
end tell

which rarely works well, so I stopped using it. Is these day your variant the 
way to go then?

Thanks.
Andreas


ETH Zurich
Prof. em. Dr. Andreas Fischlin
IPCC Vice-Chair WGII
Systems Ecology - Institute of Biogeochemistry and Pollutant Dynamics
CHN E 24
Universitaetstrasse 16
8092 Zurich
SWITZERLAND

andreas.fisch...@env.ethz.ch
www.sysecol.ethz.ch/people/andreas.fischlin.html

+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 595-4050 mobile

 Make it as simple as possible, but distrust it!










On 24/09/2021, at 16:09, Christiaan Hofman 
mailto:cmhof...@gmail.com>> wrote:

And when you want to use AppleScript, you can use the import command:

set theDOI to (get the clipboard as string)
tell application “BibDesk"
tell front document
import from theDOI
end tell
end tell

Christiaan

On 24 Sep 2021, at 15:51, Christiaan Hofman 
mailto:cmhof...@gmail.com>> wrote:

So you get the  bibtex from the website? That is more a problem of that web 
site then.

Why not just get the bibtex directly from within BibDesk? There are various 
ways. You can open the URL in a web group, and you will get publication (it is 
downloaded from the DOI site). Or even simpler, copy the DOI, and paste on the 
main window or use Publication > New Publication from Clipboard. The bibtex is 
basically the same as the one from doi2bib.

Christiaan


___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

___
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users