Although I
- Activate application “phone Mirroring”
- Connecct to my iPhone via UI clicking its Connect Button, assuming that my iPhone is locked.
- View my iPhone Spotlight Menu Item
Although I can from my keyboard manually keystroke an app’s name into Spotlight’s search field, I am unable to script System Events to perform the same activity. In this example, my app’s name is “Podcasts”.
Any suggestions?
tell application "System Events"
tell process "iPhone Mirroring"
tell first window
tell first group
set staticTexts to value of static texts
if staticTexts contains "Iphone in Use" then
set ConnectButoon to first button
tell ConnectButoon to perform action 1
end if
end tell
end tell
delay 2
click menu item "Spotlight" of menu 1 of menu bar item "View" of menu bar 1
delay 1
tell first window
tell first group
click
keystroke "Podcasts"
end tell
end tell
end tell
end tell