Here's a hacky way of doing it:

tell application "BibDesk"
        set frontWindowName to the name of window 1
        set theDoc to the document of window 1
        set thePubs to (publications of theDoc whose value of field "title"  
is frontWindowName)
        set selection of theDoc to thePubs
end tell

On May 19, 2007, at 2:07 PM, Adam R. Maxwell wrote:

> Can you write an AppleScript to select the frontmost item being edited
> in the main table?  That will cause the preview to display the item
> you want.  I don't think it's worth adding to the menus or editor
> window, though.
>
> -- 
> Adam
>
>
> On May 19, 2007, at 13:42, Christiaan Hofman wrote:
>
>> First note that creating the preview is a rather slow process, while
>> selecting a window is quick. So I don't think this will work very
>> well. Moreover, we already have 2 places where you can view latex
>> preview of the (selected) item(s). This seems much more useful to me
>> and sufficient.
>>
>> Christiaan
>>
>> On 19 May 2007, at 10:38 PM, Adam M. Goldstein wrote:
>>
>>> Many times I have many "get info" windows open, and want to see how
>>> the one I am looking at currently looks in the LaTeX preview; but in
>>> the meantime, I have been browsing around in my BD library, looking
>>> at other references and probably opening up new "get info" windows.
>>>
>>> If it is not already available, in which case I will be glad to be
>>> redirected to the appropriate documentation, I propose a new  
>>> feature:
>>> preview top bib record. Upon selecting this item from the menu (or
>>> using a keyboard combination) the preview for the top-most get info
>>> window will be shown.
>>>
>>> This is particularly useful with more complicated styles; often I
>>> want to see whether I put the right info in the right field, or else
>>> the fields are not descriptive enough to know what they really mean,
>>> but the preview will decode it for me.
>>>
>>> -Adam
>>> --
>>> Dr. Adam M. Goldstein
>>> amgoldstein <at> mac <dot> com
>>> http://homepage.mac.com/amgoldstein
>>>
>>>
>>>
>>>
>>> -------------------------------------------------------------------- 
>>> --
>>> ---
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> Bibdesk-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>>
>>
>> --------------------------------------------------------------------- 
>> ----
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> Bibdesk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Bibdesk-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bibdesk-users
>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to