Hi,
Thank you very much for this script. It works with DEVONthink, too... One
thing, though: I had to erase
"/" & theSuffix
from the line
set theCachePath to (path to home folder as text) &
"Library:Caches:Metadata:edu.ucsd.cs.mmccrack.bibdesk:" & thePrefix & "/" &
theSuffix & ".bdskcache"
to get it to work. It seems that your
/Library/Caches/Metadata/edu.ucsd...-folder has folders inside named with the
citekeys and in that folders are the cache files?! My cache files just lie in
the edu.ucsd...-folder...
Thanks again and all the best,
Januz
Am 07.08.2010 um 06:21 schrieb slow down:
> Here's an AppleScript that I use for BibDesk-Journler integration. Please
> post
> it to the wiki if you think it would be useful to others!
>
> (*
> This script reveals in a Finder window the BibDesk metadata cache files of
> the
> publications selected in the front document. Hence, it should be run after
> your
> BibTeX document has been saved in BibDesk and the metadata cache files have
> been
> automatically written to disk. Opening any of these cache files will select
> the
> corresponding publications in the BibDesk document. This is how I use the
> script
> in my workflow: While writing in Journler, when I want to link to a
> publication
> in BibDesk, I switch to BibDesk and I select the publications to which I want
> to
> link. Then I run this script. Then I drag the selected files into my Journler
> text, where they appear as hyperlinked cite keys. Henceforth, clicking on any
> of
> the cite keys in the Journler text automatically selects the publication in
> BibDesk.
> *)
>
> tellapplication"BibDesk"
> --without document, there is no selection, so nothing to do
> if(countofdocuments) = 0 then
> beep
> display dialog"No documents found." buttons{"•"} default button1 giving up
> after3
> endif
> setthePublicationstoselectionofdocument1
> endtell
> setlistOfPathsto{}
> repeatwiththePubinthePublications
> tellapplication"BibDesk"
> --get the cite key of the selected document and parse it into a bdskcache
> filename; assumes standard BibDesk cite key format with one colon, i.e.
> "thePrefix:theSuffix"
> settheCiteKeytothecite keyofthePubasstring
> setthePrefixtotext1 thru((offsetof":" intheCiteKey) - 1) oftheCiteKey
> setthePrefixtothePrefixasstring
> settheSuffixtotext((offsetof":" intheCiteKey) + 1) thru-1 oftheCiteKey
> settheSuffixtotheSuffixasstring
> set theCachePath to (path to home folder as text) &
> "Library:Caches:Metadata:edu.ucsd.cs.mmccrack.bibdesk:" & thePrefix & "/" &
> theSuffix & ".bdskcache"
> settheCachePathtotheCachePathasalias
> copytheCachePathasaliastotheendoflistOfPaths
> endtell
> endrepeat
> tellapplication"Finder" toreveallistOfPaths
>
>
> <Reveal Cache Files In
> Finder.scpt.zip>------------------------------------------------------------------------------
> This SF.net email is sponsored by
>
> Make an app they can't live without
> Enter the BlackBerry Developer Challenge
> http://p.sf.net/sfu/RIM-dev2dev
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users