RE: Need help in gui scripting
RE: Need help in gui scripting
- Subject: RE: Need help in gui scripting
- From: "BADRINATH, NANDINI" <email@hidden>
- Date: Tue, 1 Jun 2004 18:09:47 +0530
- Thread-topic: Need help in gui scripting
>
Hi,
>
I was not able to send the attachemtn in my previous mail.
So I have written the UIElementInspector code when I place the
mouse on 'Select Folder...' button.
>
<AXApplication:"QuarkXPress:>
>
<AXWindow:"Create Job">
>
<AXButton:"Select Folder...">
>
>
Attributes:
>
AXRole:"AXButton"
>
AXRoleDescription:"button"
>
AXChildren:"<Array of size 0>"
>
AXParent:"<AXWindow:"Create Job">"
>
AXTitle:"Select Folder..."
>
AXWindow:"<AXWindow:"Create Job">"
>
AXTitle:"<Select Folder..."
>
AXWindow:"<AXWindow:"Create Job">"
>
AXPosition:"X=617 Y=142"
>
AXSize:"W-115 h=20"
>
AXEnabled:"1"
>
>
Actions:
>
AXPress-press
>
>
Please tell me what code should go in for clicking on the 'Select
>
Folder..." button.
>
>
>
Regards,
>
Nandini
>
>
-----Original Message-----
>
From: BADRINATH, NANDINI
>
Sent: Monday, May 31, 2004 3:37 PM
>
To: 'email@hidden'
>
Subject: Need help in gui scripting
>
>
Hi All,
>
>
I have an application called "QuarkXPress"(Screenshot
>
attached).It has a menu called "Yours Truly" and under that a menu
>
item called "Create Job-PPML..."
>
1) I have to click on menu 'Your Truly' and under
>
that "Create Job-PPML".
>
2) Then the Create Job window pops up. Now I have
>
to click on a button called "Select Folder"(highlighted in the
>
screenshot in red). I am not able to do this with GUI Scripting.
>
>
The code below accomplishes clicking the 'Create Job' button on
>
'Yours Truly'. Please tell me what code shud go in to click 'Select
>
Folder'.
>
>
tell application "QuarkXPress"
>
activate
>
end tell
>
>
tell application "System Events"
>
tell process "QuarkXPress"
>
tell menu bar 1
>
tell menu bar item "Yours Truly"
>
tell menu "Yours Truly"
>
tell menu item "Create Job"
>
tell menu 1
>
click menu item "PPML..."
>
>
--Code to click on 'Select folder'
>
button goes here
>
end tell
>
end tell
>
end tell
>
end tell
>
end tell
>
end tell
>
end tell
>
>
>
>
3. I have attached the UI element Inspector window screenshot
>
when I placed the mouse over 'Select Folder'(in the screenshot
>
attached). Please tell me what code should go in for clicking
>
'Select Folder' button.
>
>
>
Hope someone can help!
>
>
Regards,
>
Nandini
>
<< File: Question.doc >>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.