> On 2 May 2019, at 17:22, Mahmood Shafeie Zargar <m...@msn.com> wrote: > > Hi, > > I would like to know where I can find an example of a script hook written in > JavaScript. > > I have tried things like this to no avail: > > functionperformBibDeskActionWithPublications(pubs, scriptHook) { > > } > > The function code runs, but no value is loaded in the parameters. > > Thanks, > Mah
I haven’t tried using JXA script hooks, but I think they should work. Though it could be JXA hangs BibDesk, because of bugs with JXA (that Apple says aren’t bugs but just how it works), that will be fixed in the next release. I am not an expert on JS, but shouldn’t it be: function performBibDeskActionWithPublications(pubs, {forScriptHook:scriptHook}) { } Christiaan
_______________________________________________ Bibdesk-users mailing list Bibdesk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bibdesk-users