In Hazel, `theFile` is an AppleScript variable that’s used to refer to the file 
being processed. In this case, it’s the PDF that’s tagged with the `BibDesk` 
tag, which triggers the rule.

—Antonio


On 27 Sep 2014, at 13:50, Ken Mankoff 
<[email protected]<mailto:[email protected]>> wrote:

How does that script know what theFile is?

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback 
keyboard.

On Sep 27, 2014, at 7:06, Antonio Fortin 
<[email protected]<mailto:[email protected]>> 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]<mailto:[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]<mailto:[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]<mailto:[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]<mailto:[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

Reply via email to