Re: [Bibdesk-users] Applescript Question

2011-11-24 Thread Fischlin Andreas
Don't do any hacks with BibDesk. BibDesk allows to do everything with AppleScripts quite nicely. To remove a field, make it empty, i.e. assign an empty string value and the filed will be gone. For actual code examples see my script collection at http://www.sysecol.ethz.ch/people/afischli/softwa

Re: [Bibdesk-users] Applescript Question

2011-11-23 Thread Di Xiao
On Wed, Nov 23, 2011 at 5:25 AM, Christiaan Hofman wrote: > > On Nov 23, 2011, at 3:10, Di Xiao wrote: > >> I'm writing an applescript to do the following >> >> 1) import bibtex from a webpage in safari >> 2) generate a cite key according to the auto generation rule set in >> preferences >> >> Be

Re: [Bibdesk-users] Applescript Question

2011-11-23 Thread Christiaan Hofman
On Nov 23, 2011, at 3:10, Di Xiao wrote: > I'm writing an applescript to do the following > > 1) import bibtex from a webpage in safari > 2) generate a cite key according to the auto generation rule set in > preferences > > Below is the part of applescript > > tell document 1 of application "

Re: [Bibdesk-users] Applescript Question

2011-11-22 Thread Fischlin Andreas
I see no need for a hack such as tell application "System Events" to keystroke "k" using {command down} if you check your BibDesk preference "Cite Key -> Cite Key Autogeneration -> Autogenerate the cite key wehn enough fields are supplied" Regards, Andreas On 23/11/2011, at 03:10 , Di Xiao w

[Bibdesk-users] Applescript Question

2011-11-22 Thread Di Xiao
I'm writing an applescript to do the following 1) import bibtex from a webpage in safari 2) generate a cite key according to the auto generation rule set in preferences Below is the part of applescript tell document 1 of application "BibDesk" activate set myPub to first item of (

Re: [Bibdesk-users] applescript question

2010-07-22 Thread Christiaan Hofman
On Jul 23, 2010, at 1:48, Sasha Cuerda wrote: > My apologies for the simplicity of this questions. > > I often will download citations from various databases (sciencedirect for > example). They will be saved as .ris files. What I want to do is create an > applescript that I can attach as a fol

[Bibdesk-users] applescript question

2010-07-22 Thread Sasha Cuerda
My apologies for the simplicity of this questions. I often will download citations from various databases (sciencedirect for example). They will be saved as .ris files. What I want to do is create an applescript that I can attach as a folder action to automate the importation of these citations in

Re: [Bibdesk-users] Applescript question

2009-12-14 Thread Jan Erik Moström
On 09-12-14 at 16:24, cmhof...@gmail.com (Christiaan Hofman) wrote: >AFAICS it's not supported anymore. I'll add it again for the next nightly. Thanks - jem -- Jan Erik Moström http://mostrom.eu -- Return on Informati

Re: [Bibdesk-users] Applescript question

2009-12-14 Thread Christiaan Hofman
On Dec 14, 2009, at 15:53, Jan Erik Moström wrote: > A quick question, a snippet like this > > tell application "BibDesk" > set cp to publication of window 1 > tell cp > set r_auth to value of field "Author" > end tell > end tell > > used to work just fine, now when I try wi

[Bibdesk-users] Applescript question

2009-12-14 Thread Jan Erik Moström
A quick question, a snippet like this tell application "BibDesk" set cp to publication of window 1 tell cp set r_auth to value of field "Author" end tell end tell used to work just fine, now when I try with 1.4 I get an error: error "BibDesk got an error: Can’t get public

Re: [Bibdesk-users] AppleScript question

2008-07-12 Thread Brian
neral discussion about using BibDesk Sent: Saturday, July 12, 2008 6:29:36 PM Subject: Re: [Bibdesk-users] AppleScript question This looks like a bug in the last release that was fixed a while ago. Try a recent nightly. Christiaan On 13 Jul 2008, at 12:13 AM, Brian wrote: I'm trying to

Re: [Bibdesk-users] AppleScript question

2008-07-12 Thread Christiaan Hofman
This looks like a bug in the last release that was fixed a while ago. Try a recent nightly. Christiaan On 13 Jul 2008, at 12:13 AM, Brian wrote: I'm trying to use Greg Landweber's AppleScript to extract a BibTeX citation from MathSciNet to BibDesk v. 1.3.17. This worked (once I made some

[Bibdesk-users] AppleScript question

2008-07-12 Thread Brian
I'm trying to use Greg Landweber's AppleScript to extract a BibTeX citation from MathSciNet to BibDesk v. 1.3.17. This worked (once I made some modifications to account for changed web source format on MathSciNet) until recently, but now I'm getting an error at the step set newPublication to ma