• 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: Need help in gui scripting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Need help in gui scripting


  • Subject: RE: Need help in gui scripting
  • From: "BADRINATH, NANDINI" <email@hidden>
  • Date: Wed, 2 Jun 2004 18:08:03 +0530
  • Thread-topic: Need help in gui scripting

Hi All,
I am trying to write UI scripts for QuarkXPress. When I have a
click button "Say X"
in my script, the script editor does not give an error but the button
does not get clicked also. In the results tab in Script editor the
message 'Button X of application... of process..." is displayed which
means that the button is selected... But it does not get clicked. What
could possible be the reason and can you suggest any workarounds?

Regards,
Nandini

> -----Original Message-----
> From: BADRINATH, NANDINI
> Sent: Tuesday, June 01, 2004 6:10 PM
> To: 'email@hidden'
> Subject: RE: 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.


  • Prev by Date: InDesign CS external page destination
  • Next by Date: iTunes Picture data
  • Previous by thread: Re: Need help in gui scripting
  • Next by thread: Re: Need help in gui scripting
  • Index(es):
    • Date
    • Thread