• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UI scripting question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI scripting question


  • Subject: Re: UI scripting question
  • From: KOENIG Yvan <email@hidden>
  • Date: Fri, 18 Jul 2008 17:29:53 +0200

Here is the log displayed when I run the script under 10.4.11.

tell application "Safari"
activate
end tell
tell application "System Events"
click menu item 1 of menu 1 of menu bar item 3 of menu bar 1 of process "Safari"
menu item "Nouvelle fenêtre" of menu "Fichier" of menu bar item "Fichier" of menu bar 1 of application process "Safari"


click menu item 21 of menu 1 of menu bar item 3 of menu bar 1 of process "Safari"
menu item "Format d’impression…" of menu "Fichier" of menu bar item "Fichier" of menu bar 1 of application process "Safari"


get properties of every UI element of sheet 1 of window 1 of process "Safari"
{{position:{996, 300}, maximum value:missing value, name:missing value, size:{444, 55}, subrole:missing value, class:UI element, minimum value:missing value, enabled:true, selected:missing value, role:"AXUnknown", help:missing value, title:missing value, value:missing value, entire contents:{}, description:"inconnu", focused:missing value, orientation:missing value}, {position:{1077, 65}, maximum value:missing value, name:"Réglages :", size:{68, 20}, subrole:missing value, class:static text, minimum value:missing value, enabled:true, selected:missing value, role:"AXStaticText", help:missing value, title:missing value, value:"Réglages :", entire contents:{}, description:"texte", focused:missing value, orientation:missing value}, {position:{1016, 89}, maximum value:missing value, name:missing value, size:{404, 208}, subrole:missing value, class:UI element, minimum value:missing value, enabled:true, selected:missing value, role:"AXUnknown", help:missing value, title:missing value, value:missing value, entire contents:{}, description:"inconnu", focused:missing value, orientation:missing value}, {position:{1147, 64}, maximum value:missing value, name:missing value, size:{210, 20}, subrole:missing value, class:pop up button, minimum value:missing value, enabled:true, selected:missing value, role:"AXPopUpButton", help:missing value, title:missing value, value:"Attributs de page", entire contents:{}, description:"bouton de menu local", focused:false, orientation:missing value}}


get properties of every UI element of UI element 1 of sheet 1 of window 1 of process "Safari"
{{position:{1351, 326}, maximum value:missing value, name:"OK", size:{69, 20}, subrole:missing value, class:button, minimum value:missing value, enabled:true, selected:missing value, role:"AXButton", help:missing value, title:"OK", value:missing value, entire contents:{}, description:"bouton", focused:false, orientation:missing value}, {position:{1261, 326}, maximum value:missing value, name:"Annuler", size:{78, 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:{1016, 326}, 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}}


get properties of static text 1 of sheet 1 of window 1 of process "Safari"
{position:{1077, 65}, maximum value:missing value, name:"Réglages :", size:{68, 20}, subrole:missing value, class:static text, minimum value:missing value, enabled:true, selected:missing value, role:"AXStaticText", help:missing value, title:missing value, value:"Réglages :", entire contents:{}, description:"texte", focused:missing value, orientation:missing value}


get properties of every UI element of UI element 3 of sheet 1 of window 1 of process "Safari"
{{position:{1016, 89}, maximum value:missing value, name:missing value, size:{390, 208}, subrole:missing value, class:UI element, minimum value:missing value, enabled:true, selected:missing value, role:"AXUnknown", help:missing value, title:missing value, value:missing value, entire contents:{}, description:"inconnu", focused:missing value, orientation:missing value}}


get properties of pop up button 1 of sheet 1 of window 1 of process "Safari"
{position:{1147, 64}, maximum value:missing value, name:missing value, size:{210, 20}, subrole:missing value, class:pop up button, minimum value:missing value, enabled:true, selected:missing value, role:"AXPopUpButton", help:missing value, title:missing value, value:"Attributs de page", entire contents:{}, description:"bouton de menu local", focused:false, orientation:missing value}


get properties of every UI element of UI element 1 of UI element 3 of sheet 1 of window 1 of process "Safari"
{}


get properties of every UI element of radio group of sheet 1 of window 1 of process "Safari"
{}


click button 2 of radio group of sheet 1 of window 1 of process "Safari"
end tell



Nothing described as a radio group in sheet 1.

This sheet contain four UI elements:

an Unknown one grouping the OK and the Cancel buttons
a staticText one named "Réglages"
an Unknown one containig one other unknown one
a popupbutton named "Attributs de pages"

Yvan KOENIG (from FRANCE vendredi 18 juillet 2008 17:29:28)


_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: UI scripting question (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Mostly broken- Applescript + Leopard + Filemaker 6
  • Next by Date: Re: Hiding a compiled script
  • Previous by thread: Re: UI scripting question
  • Next by thread: Re: UI scripting question
  • Index(es):
    • Date
    • Thread