Menu

#339 Applescript access to groups

closed
5
2007-06-06
2007-05-26
Derick Fay
No

UI scripting doesn't work properly with creating groups -- here's an example:

- - begin script - -

property the_tag : "land"

tell application "BibDesk"
activate
tell application "System Events"
tell process "BibDesk"
tell menu bar 1
click menu item "New Smart Group" of menu "Database"
end tell
set value of text field 1 of group 2 of scroll area 1 of group 1
of sheet 1 of window "master" to the_tag
set value of combo box 1 of scroll area 1 of group 1 of sheet 1 of
window "master" to "Keywords"
click button "OK" of sheet 1 of window "master"
end tell
end tell
end tell

- - end script - -

Everything works as expected except that the new Smart Group which is
create doesn't actually have the values (Keyword contains land) that
are set in the script -- its criteria are empty.

This appears to be a UI Scripting problem, not a BibDesk problem.

My feature request is that group creation / manipulation be made directly accessible through Applescript (and thus avoid UI scripting).

so the UI scripting in the above script could be replaced with something like this

create new smart group with criteria (Keywords contains the_tag)

thx
Derick

Discussion

  • Christiaan Hofman

    • status: open --> closed
     
  • Christiaan Hofman

    Logged In: YES
    user_id=1162009
    Originator: NO

    This is a problem (bug?) of UI scripting rather than BibDesk, as it does not trigger binding change notifications. Submitted bug report with Apple.

     

Log in to post a comment.

MongoDB Logo MongoDB