Skip to content

Commit 078b311

Browse files
first commit
0 parents  commit 078b311

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

.github/workflows/macos-voiceover.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
# Start VoiceOver
23+
/System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOverStarter
24+
25+
# Given VoiceOver time to start
26+
sleep 10
27+
28+
# See if VoiceOver process is running
29+
ps aux | egrep "[V]oiceOver"
30+
31+
# See if AppleScript thinks VoiceOver is running
32+
/usr/bin/osascript voiceOverRunning.applescript
33+
34+
# Attempt to control VoiceOver using AppleScript
35+
/usr/bin/osascript voiceOverMove.applescript

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

voiceOverMove.applescript

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
tell application "VoiceOver"
2+
-- Ensure VoiceOver is focused
3+
activate
4+
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 tell

voiceOverRunning.applescript

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

0 commit comments

Comments
 (0)