Of course this script won't do anything by itself. It is not complete, it is
just a fragment for the relevant part related to BibDesk. You have to somehow
pass the file to the script. I don't know if and how Hazel can do that.
Christiaan
On Sep 27, 2014, at 13:06, Antonio Fortin wrote:
> Hi Christiaan,
>
> Many thanks for that. However, when I trigger the script in Hazel, the PDF in
> question doesn’t get added to BibDesk. I know that the rest of the rule is
> working, because it does other things (like remove the tag).
>
> I suspect I haven’t set it up correctly, however. I’ve attached a screenshot
> of the rule. Does it work for you, as it is?
>
> I’ll almost always want to import to an existing library when BibDesk is
> already running, so I’m not worrying about the conditional statement or
> activating BibDesk just yet.
>
> Thanks again.
>
> Best,
> Antonio
>
> <hazelBibDesk.jpg>
>
>
>
>
> On 26 Sep 2014, at 23:04, Christiaan Hofman <[email protected]> wrote:
>
>>
>> On Sep 26, 2014, at 19:54, Maxwell, Adam R wrote:
>>
>>>
>>> On Sep 26, 2014, at 08:17, Christiaan Hofman <[email protected]> wrote:
>>>
>>>> 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):
>>>
>>> The same script would also work if you have BD set to open a particular
>>> .bib file at launch, right? That would allow the OP to append new PDFs to
>>> the same .bib database.
>>>
>>> Adam
>>>
>>
>> Yes, it should. Though if you want to apply this also in cases where BibDesk
>> should launch, then you probably also want to add an "activate" command
>> somewhere. And I can imagine there may be timing issues (i.e. it checks for
>> the count of documents before the initial file was launched), though a quick
>> test does seem to work.
>>
>> 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