• 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
Button that seems to be clicked in UI scripting, but isn't?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Button that seems to be clicked in UI scripting, but isn't?


  • Subject: Button that seems to be clicked in UI scripting, but isn't?
  • From: Richard Rönnbäck <email@hidden>
  • Date: Thu, 17 Feb 2005 09:51:40 +0100

I am trying to trigger an Acrobat batch sequence, by using GUI scripting but
I have problems understanding why the button I like to click does not have
any effect

The AppleScript I am trying to run goes like this:


tell application "Acrobat 6.0.2 Professional"
    activate
    execute menu item 6 of menu "Advanced"
    delay 2
end tell
tell application "System Events"
    tell process "Acrobat"
        click button "Kör sekvens" of window "Gruppbearbetningssekvenser"
        -- English names are if I recall them correctly "Run sequence" and
"Batch sequences"
    end tell
end tell


And while I can see that the button seems to be clicked, the click has no
effect. Same thing if I use the "Perform" button in the UI Element
Inspector, it looks ok, but does nothing.


The UI Element Inspector tells me:

<AXApplication: ³Acrobat²>
 <AXWindow: ³Gruppbearbetningssekvenser²>
  <AXButton: ³Kör sekvens²>

Attributes:
   AXRole:  ³AXButton²
   AXRoleDescription:  ³button²
   AXChildren:  ³<array of size 0>²
   AXParent:  ³<AXWindow: ³Gruppbearbetningssekvenser²>²
   AXTitle:  ³Kör sekvens²
   AXWindow:  ³<AXWindow: ³Gruppbearbetningssekvenser²>²
   AXPosition:  ³x=568 y=433²
   AXSize:  ³w=144 h=17²
   AXEnabled:  ³1²

Actions:
   AXPress - tryck


I downloaded the demo version of Prefab UI Browser and I can see that it
doesn't list the Batch sequence window at all

What can I do to *really* click on the button? Or is it one of those
Adobe-specific things that will not work with UI scripting?

Any help is appreciated


--
Richard Rönnbäck


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Compiling scripts that control applications that aren't installed (From: kai <email@hidden>)

  • Prev by Date: Date handlers
  • Next by Date: Re: Date handlers
  • Previous by thread: Re: Compiling scripts that control applications that aren't installed
  • Next by thread: Date handlers
  • Index(es):
    • Date
    • Thread