• 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
No effect when I click with UI scripting on the sidebar of "Open..." navigation window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No effect when I click with UI scripting on the sidebar of "Open..." navigation window


  • Subject: No effect when I click with UI scripting on the sidebar of "Open..." navigation window
  • From: quark67 <email@hidden>
  • Date: Sun, 5 Nov 2017 00:15:02 +0100

Because of a non-scriptable app, I will use UI scripting to control app.
On a step of this, I must give a folder to save the output.

For simplicity, suppose the app to control is Preview.app, and the "Open..." navigation window is open (go to File > Open... of Preview.app).

I see this (it's on a French system):


I want to simulate the click on "Vidéo" on the sidebar of the window.

With:
tell application "Preview"
tell application "System Events"
tell process "Preview"
--click UI element 1 of row 2 of outline 1 of scroll area 1 of splitter group 1 of window 1
get name of UI element 1 of row 2 of outline 1 of scroll area 1 of splitter group 1 of window 1
end tell
end tell
end tell

I obtain: --> "Vidéos"

Good (row 2 is the second item of the side bar; for example, row 3 is the UI element "Application").

So, I test this:
tell application "Preview"
tell application "System Events"
tell process "Preview"
click UI element 1 of row 2 of outline 1 of scroll area 1 of splitter group 1 of window 1
--get name of UI element 1 of row 2 of outline 1 of scroll area 1 of splitter group 1 of window 1
end tell
end tell
end tell

Result: no error, but nothing changes.

I will obtain this ("Vidéos" selected):

How can I obtain this? Thanks.

 _______________________________________________
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

  • Follow-Ups:
    • Re: No effect when I click with UI scripting on the sidebar of "Open..." navigation window
      • From: quark67 <email@hidden>
  • Prev by Date: Re: loops vs no loops ?
  • Next by Date: Re: No effect when I click with UI scripting on the sidebar of "Open..." navigation window
  • Previous by thread: Re: loops vs no loops ?
  • Next by thread: Re: No effect when I click with UI scripting on the sidebar of "Open..." navigation window
  • Index(es):
    • Date
    • Thread