fix(file_handlers): use keystroke Cmd+Return to start pptx slideshow

Replace unreliable AppleScript PowerPoint API (run slide show of settings)
with System Events keystroke approach, matching proven behavior from the
old MasterKey app. Opens the file, waits 3s for load, then sends Cmd+Return
to start the slideshow from slide 1.
This commit is contained in:
Scott Idem
2026-04-20 17:01:04 -04:00
parent 3feaf1bbc3
commit 002c27e73c
5 changed files with 56 additions and 33 deletions

View File

@@ -174,8 +174,10 @@ function registerFileHandlers() {
tell application "Microsoft PowerPoint"
activate
open (POSIX file "${target}")
delay 1
run slide show of active presentation
delay 3
end tell
tell application "System Events"
keystroke return using command down
end tell
`;
}

File diff suppressed because one or more lines are too long