I need to open Keynote files programmatically via Node.js. using
open -a Keynote -W "path/to/file.key"
everything works well. But there are two tasks I cannot solve:
- the presentation needs to start directly so no further user interaction is necessary.
As I have no control over the presentation itself, I cannot alter the files to start in presentation mode. Somehow I have to tell Keynote. In Powerpoint this is possible via the /s Argument (powerpoint.exe /s "path/to/presentation.pptx" will go directly in presentation mode). Does something similar exist for Keynote?
- After the last slide I need to quit Keynote
Is there any possibility to tell Keynote to quit after the last slide? My Application needs to know when the presentation is finished and I can track when the program closes, but as default it only closes the presentation, not Keynote itself.