first commit #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MacOS VoiceOver | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
start-voiceover-and-move-right: | |
runs-on: ${{ matrix.os }} | |
continue-on-error: true | |
strategy: | |
matrix: | |
os: [macos-13, macos-14, macos-15] | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
# Disable splash screen | |
defaults write com.apple.VoiceOverTraining doNotShowSplashScreen -bool true | |
sleep 1 | |
# Start VoiceOver | |
/System/Library/CoreServices/VoiceOver.app/Contents/MacOS/VoiceOverStarter & | |
# Given VoiceOver time to start | |
sleep 10 | |
# See if VoiceOver process is running | |
ps aux | egrep "[V]oiceOver" | |
# See if AppleScript thinks VoiceOver is running | |
/usr/bin/osascript voiceOverRunning.applescript | |
sleep 1 | |
# Use AppleScript to "activate" VoiceOver | |
/usr/bin/osascript voiceOverActivate.applescript | |
sleep 1 | |
# Attempt to control VoiceOver using AppleScript | |
/usr/bin/osascript voiceOverMove.applescript | |
sleep 1 | |
# Terminate VoiceOver | |
kill -15 $(ps aux | egrep "[V]oiceOver.app/Contents/MacOS/VoiceOver launchd -s" | awk '{print $2}') |