My guess is that this is a bug in UI scripting. Apparently it does not set the values of text fields in a KVC compatible way, so that bindings do not work. You may file a bug report about this with Apple.
Christiaan On 26 May 2007, at 4:29 AM, Derick Fay wrote: > Hi all > I am trying to write an applescript to create a new smart group in > Bibdesk. Here's what I have (using UI scripting): > > - - 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. > > Any advice would be appreciated. > Derick > > ---------------------------------------------------------------------- > --- > 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
