I have an application to run a slideshow on the mac. I would like to disable screen dimming when I start the slideshow, and enable it again when I stop the slideshow... Therefore I need an api into the MAC to do so. Is anybody aware of such api? ( I am aware of caffine - but that disables this for the whole application...I only want when I have selected screenshow.)

closed as off-topic by Allan, Monomeeth Apr 13 '18 at 23:22

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions about software development are off-topic here, but can be asked on Stack Overflow." – Allan, Monomeeth
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Invoke caffeinate as a subprocess before starting the screen show and kill it afterwards? – Daniel Apr 13 '18 at 22:18

Browse other questions tagged .