Skip to content

Commit a70124b

Browse files
first commit
0 parents  commit a70124b

5 files changed

+77
-0
lines changed

.github/workflows/macos-voiceover.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: MacOS VoiceOver
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
start-voiceover-and-move-right:
11+
runs-on: ${{ matrix.os }}
12+
continue-on-error: true
13+
strategy:
14+
matrix:
15+
os: [macos-13, macos-14, macos-15]
16+
steps:
17+
- uses: actions/checkout@v3
18+
- run: |
19+
# Disable splash screen
20+
defaults write com.apple.VoiceOverTraining doNotShowSplashScreen -bool true
21+
22+
sleep 1
23+
24+
# Start VoiceOver
25+
/System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOverStarter &
26+
27+
# Given VoiceOver time to start
28+
sleep 10
29+
30+
# See if VoiceOver process is running
31+
ps aux | egrep "[V]oiceOver"
32+
33+
# See if AppleScript thinks VoiceOver is running
34+
/usr/bin/osascript voiceOverRunning.applescript
35+
36+
sleep 1
37+
38+
# Use AppleScript to "activate" VoiceOver
39+
/usr/bin/osascript voiceOverActivate.applescript
40+
41+
sleep 1
42+
43+
# Attempt to control VoiceOver using AppleScript
44+
/usr/bin/osascript voiceOverMove.applescript
45+
46+
sleep 1
47+
48+
# Terminate VoiceOver
49+
kill -15 $(ps aux | egrep "[V]oiceOver.app/Contents/MacOS/VoiceOver launchd -s" | awk '{print $2}')

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# macos-15 VoiceOver Error Demo
2+
3+
Simple workflow to demonstrate macos-15 issues with VoiceOver AppleScript support reported in https://github.com/actions/runner-images/issues/11257

voiceOverActivate.applescript

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
delay 1
2+
3+
tell application "VoiceOver"
4+
with transaction
5+
-- Ensure VoiceOver is focused
6+
activate
7+
end transaction
8+
end tell

voiceOverMove.applescript

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
delay 1
2+
3+
tell application "VoiceOver"
4+
with transaction
5+
-- Attempt to move the VO cursor right 5 times.
6+
-- This is where we can see evidence of macos-15 agents not having
7+
-- AppleScript support enabled for VoiceOver as it errors with:
8+
-- "execution error: VoiceOver got an error: AppleEvent handler failed. (-10000)"
9+
tell vo cursor to move right
10+
end transaction
11+
end tell

voiceOverRunning.applescript

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
delay 1
2+
3+
tell application "VoiceOver"
4+
-- See if VoiceOver is running
5+
return running
6+
end tell

0 commit comments

Comments
 (0)