![]() Which would make sense since it refers to the script filer. In fact, on trying this a few times, the Code 1 error message is coming before I hit any of the modifier keys. ![]() Code 1: Exited with error code but no message Works fine, but the debugger displays a message: + to open attached pdf in your favorite viewer Luc Bourhis via Bibdesk-users Sun, 02:21:25 -0700 Hi Christiaan, thanks, sorry for being lazy Yes, I will try and if it works, I’ll share the templates on this mailing list. Set q to "/Users/?/Library/Caches/Metadata/.mmccrack.bibdesk/?.bdskcache"ĭisplay dialog "Please open your BibDesk database" buttons " For this we analyze the Applescript.Ĭan you copy the following into the Applescript editor and adapt q to contain the path to your bdskfile? What happens if you run it? Let's have a look at the more difficult case, i.e., what happens if you press ^↩. It should show dialogs with the path to the entry selected in Alfred. I have uploaded a debug build here: BibDesk_Search_debug.alfredworkflow The activeApp part is somewhat complex to account for users who have different apps with the same name (I do because of Parallels).Īs you may have guessed, the scripts are working fine on my computer. The idea behind these changes was to re-activate the formerly frontmost app after the clipboard was set. Set activeApp to file of (application processes where bundle identifier is process_bid)Īt the very beginning and changed the end of the script toĪs you can see, I also changed the name of the result from result to theResult - for some reason, it wouldnt't work otherwise with my changes. Set process_bid to get the bundle identifier of process activeApp Set activeApp to name of first application process whose frontmost is true TelltheDocument to set the clipboard to ( templated text using theTemplate for thePublications )Īs expected, the copying does not preserve the formatting, but that is a limitation of AppleScript itself and doesn't bother me as I use character style templates in my documents anyways. Set thePublications to the selection of document 1 I am suggesting this because I often write short texts outside of LaTeX where I still cite publications I keep in Bibdesk.įor what it's worth, I know it is possible to access the Bibdesk templates in AppleScript (which seems to break rich text) like this: In essence, it would implement Bibdesk's "Copy using template" with a preset template. It would be great if one could set a default BibDesk template and then have one additional modifier which - provided the bib fiel containing the publication is open - copies the selected publication formatted according to the preset template to the clipboard. I have one feature suggestion - obviously, since I am unable to estimate how difficult this would be to implement, this is a mere suggestion. Sebastian, thank you for a great workflow.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |