'Clicking on Static Text using Apple Script
I need to do the following using Apple Script
- Bring X code app to front
- Open Device and Simulators tab
- Click on the left panel, so the focus is on devices
I used Automator "Watch me do" option and copied the code as a script. It performs 1 and 2 but not 3.
Here is the script
tell application "Xcode" to activate
tell application "System Events" to tell process "Xcode"
click menu item "Devices and Simulators" of menu 1 of menu bar item "Window" of menu bar 1
click outline 1 of scroll area 1 of splitter group 1 of window "Devices"
end tell
set r1 to "Success"
Can somebody help?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
