Hi
I have a project that download a big mass of Files from a certain Secure website through an HTTPSecureSocket.
Everything goes ok, but I realize that When my Mac is locked or Screensaver appears, my Queue get paused. And when I exit the screensaver or active the screen
Again resume the Download Queue.
Is It normal?, Someone here has faced with this?
In case that this is Normal, Is there a way to avoid that and download when the Mac is locked?
I have newer code which I’m using in a 64-Bit project, let me clean it up and share it. I’ve redesigned how it works to make it much simpler.
Two things:
There was a conversation earlier (later last year) where it appears that Apple have changed/broken how App Nap functions, which means that your application naps once the screen saver kicks in, regardless of the settings.
I would actually recommend placing the download functions in a helper background application and by default non-gui applications did (this may have changed) not participate in App Nap, and should still function normally.
I believe that this should give you what you want.
redBull = new caffeineDrip
redbull.reason = "App Nap Test"
redbull.allowIdleSystemSleep = false
redbull.displaySleepDisabled = true
redbull.start
Note:
Stopping the system from sleeping is the only way I am aware of to allow a GUI application to continue working. Use a console application otherwise.
It has been confirmed in some 10.13 builds that the OS ignores these settings and will allow the system to sleep and will nap your application. I don’t know which builds and if this bug has been fixed, nor do I know if a console application will help here.