On Oct 8, 2014, at 1:39, Christiaan Hofman wrote:

> 
> On Oct 8, 2014, at 1:03, Januzzz wrote:
> 
>> OK, thanks for the clarification. So there is no possibility to use this
>> scraping mechanism using AppleScript? Would you consider adding it?
>> 
>> I, like the original poster, would like to have a folder in which I can save
>> PDFs, then let Hazel execute a script that does the same as dragging the PDF
>> onto the library, i.e., add the PDF and meta data as new BibDesk entry.
>> 
>> Thanks,
>> 
>> J
>> 
> 
> No. These features are not exposed and hidden behind hidden prefs for a 
> reason: they are not reliable in general. You should somehow get the script 
> to reproduce the scraping the way you want it. It is not something 
> appropriate for AppleScript. AS exposes basic functions, not complex higher 
> order functions.
> 
> Christiaan
> 

Thinking about this a little more, I think what we could do is make all the 
steps to reproduce the drop behavior possible. What we could do is to extent 
the "import" command a little bit by allowing something like "import with 
theFile", which creates a new pub with an attached file the way dropping would 
do (including reading meta data when that is turned on.) 

Then dropping would be roughly equivalent to the following applescript:

tell application "BibDesk"
tell document 1
set newPubs to import from theFile
if count of newPubs is 0 then
set newPubs to import with theFile
end if
select newPubs
end tell
end tell

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