Automatically disable screensaver password lock
Hi folks,
I've been tinkering with the 'BlockParty' script for iTunes (this one from Doug's Applescripts collection). I want to run it once per day, before I automatically start the playlist at a certain time.
I've created an automator action to launch the 'Block Party.app, 'Pause' 5 seconds, 'Watch me Do' to click the 'proceed' button, 'Pause' 10 seconds, then 'Quit' the app. This works when I'm in front of the Mac, but when my screensaver is running (with password lock, because I have kids) the script executes but doesn't actually clock the 'proceed' button. I assume this is because the screensaver is on.
(NB I realise 'Watch me do' isn't the ideal way to click a button, but I tried many variations of using applescript to click the 'proceed' button and/or hit 'return' ... but all failed.)
I asked Doug and he suggested using launchd. I have a little experience with launchd but as far as I knew all it can do is re-start a process if it quits. I can't see how it will help here.
I've done some googling on ways to disable the screensaver but have come up blank. I've found pages like this one which discuss how to enable/disable it, but it looks like it would only work if the Mac isn't already displaying a screensaver.
Any ideas? Thanks!
iMac (Retina 5K, 27-inch, Late 2015), OS X El Capitan (10.11.4), null