sorry, there was an error in that script. Here’s the corrected one:

tell application "BibDesk"
    set the_pub to publication of front window
    tell front document
        if the_pub is missing value then
            set the_pubs to its selection
            if count the_pubs is 1 then
                set the_pub to get item 1 of the_pubs
            end if
        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 
"<$publications.@firstObject.bdskURL/>" for the_pub
        else
            set the_name to its name
            set the_url to file URL of its file
        end if
    end tell
    return "[" & the_name & "](" & the_url & ")"
end tell


Christiaan

_______________________________________________
Bibdesk-users mailing list
Bibdesk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to