AppleScript could very well do this. But how to write that AppleScript really 
depends on how you want to use it and what you want precisely to do. Probably 
you need some AppleScript like the following (here I assume theFile is the file 
you want to add):

tell application "BibDesk"
if (count of documents) is 0 then make new document
tell front document
set thePub to make new publication
add theFile to thePub
end tell
end tell

Christiaan

On Sep 26, 2014, at 13:21, Antonio Fortin wrote:

> Thanks Ken. I’d like to be able to automate the importing of PDFs into 
> BibDesk. I’m on a Mac, so what I do to add files to other apps is have Hazel 
> (an automation assistant) monitor a folder and, depending on the tag a file 
> has, it will open it in a specific app. That’s usually enough to import it 
> into that app. However, with BibDesk, this doesn’t work - I get an error 
> saying that the file isn’t a text file. I assume that this is because when 
> one opens a file in BibDesk, it expects a library (.bib) rather than a binary 
> file. Is there a different command I could use, or even an AppleScript, that 
> would allow me to add a PDF? 
> 
> I’m currently migrating from Papers to BibDesk, so this would also be helpful 
> for that.
> 
> Antonio
> 
> 
> On 26 Sep 2014, at 13:01, Ken Mankoff <[email protected]> wrote:
> 
>> Drag and drop does this. Just drop between entries, not on a entry. 
>> 
>> Please excuse brevity. Sent from pocket computer with tiny non-haptic 
>> feedback keyboard. 
>> 
>>> On Sep 26, 2014, at 6:44, Antonio Fortin <[email protected]> 
>>> wrote:
>>> 
>>> Hi all,
>>> 
>>> Is there any way to import PDFs that don’t already have an entry in 
>>> BibDesk? The idea would be that, if the PDF has no metadata (or that 
>>> metadata is junk, which is usually the case, that this would just create a 
>>> blank entry with the PDF attached to it.
>>> 
>>> Thanks,
>>> Antonio
>>> ------------------------------------------------------------------------------
>>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Bibdesk-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>> 
>> ------------------------------------------------------------------------------
>> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
>> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
>> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
>> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
>> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Bibdesk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
> 
> 
> ------------------------------------------------------------------------------
> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Christiaan

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to