> On 29 Nov 2020, at 02:02, Matthew Heun via Bibdesk-users
> <[email protected]> wrote:
>
> Greetings:
>
> I'm evaluating Hook, a cool productivity app for macOS.
> (https://hookproductivity.com) It would be a big benefit to be able to make
> a Hook link into an entry in a BibDesk database (.bibtex file). Such
> integration could be a game changer for my research workflow. I don't think
> Hook-BibDesk integration exists at this time. (Please correct me if I'm
> wrong!)
>
> At https://hookproductivity.com/help/integration/, it appears that apps can
> integrate with Hook via a few AppleScripts. Details are here:
>
> https://hookproductivity.com//help/integration/other-app-developers
>
> and here:
>
> https://hookproductivity.com/help/integration/creating-integration-scripts/
>
> I'm looking for guidance from those who are more proficient at Apple Script
> and who know the BibDesk dictionary. Does it look like a reasonable task to
> write the scripts to integrate BibDesk and Hook? Are there any BibDesk power
> users/developers who want to work on Hook integration?
>
> I'm no Apple Script programmer. R and LaTeX are more my thing. So I'm
> hoping someone who knows Apple Script could make Hook-BibDesk integration
> happen. But if it seems feasible and no one else is able/willing to work on
> it, I'm willing to collaborate with a few people to try to make this happen.
>
> I'm eager for some feedback on this topic!
>
> Cheers,
>
> Matt
I think the following would work as an Address script:
tell application "BibDesk"
set the_pub to publication of front document
if the_pub is missing value then
tell front document
set the_pubs to its selection
if count the_pubs is 1 then
set the_pub to get item 1 of the_pubs
else
set the_name to its name
set the_url to file URL of its file
end if
end tell
end if
if the_pub is not missing value then
set the_name to title of the_pub
set the_url to export using text
"<[email protected]/>" for the_pub
end if
return "[" & the_name & "](" & the_url & ")"
end tell
HTH
Christiaan
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users