Hello
Using this script
property myApp : "TextEdit"
tell application myApp to activate
tell application "System Events" to tell application process myApp
get properties of every button of UI element 4 of sheet 1 of window 1
end tell
end
I am able to get the properties of the buttons of the Print Dialog
[i]{position:{434, 332}, maximum value:missing value, name:missing value, size:{21, 18}, subrole:missing value, class:button, minimum value:missing value, enabled:true, selected:missing value, role:“AXButton”, help:missing value, title:missing value, value:missing value, entire contents:{}, description:“bouton”, focused:false, orientation:missing value},
{position:{898, 329}, maximum value:missing value, name:“Imprimer”, size:{79, 20}, subrole:missing value, class:button, minimum value:missing value, enabled:true, selected:missing value, role:“AXButton”, help:missing value, title:“Imprimer”, value:missing value, entire contents:{}, description:“bouton”, focused:false, orientation:missing value},
{position:{816, 329}, maximum value:missing value, name:“Annuler”, size:{71, 20}, subrole:missing value, class:button, minimum value:missing value, enabled:true, selected:missing value, role:“AXButton”, help:missing value, title:“Annuler”, value:missing value, entire contents:{}, description:“bouton”, focused:false, orientation:missing value},
{position:{547, 330}, maximum value:missing value, name:“Aperçu”, size:{76, 20}, subrole:missing value, class:button, minimum value:missing value, enabled:true, selected:missing value, role:“AXButton”, help:“Aide du bouton Aperçu”, title:“Aperçu”, value:missing value, entire contents:{}, description:“bouton”, focused:false, orientation:missing value}[/i]
but I can’t find any trace of an AXDefaultButton attribute.
Yvan KOENIG (from FRANCE mercredi 14 février 2007 16:46:56)