Running applescript during laptop sleep ends with error - ios

So I have an applescript (from https://apple.stackexchange.com/questions/370531/catalina-backup-ios-devices-programatically/370850#370850?newreg=14a167f68b6b4b4faa86c0877fb000ba) that backs up my iphone over wifi.
It works perfectly when running manually.
Now, I want to schedule them periodically (daily) at some hour in the night.
I've tried using launchd and periodic services, but when they run the script in the night when laptop is sleeping, I get: "execution error: System Events got an error: Application isn’t running. (-600)"
Not sure what is not running - System Events or the Finder??
Any idea how to make the script work when lid is closed?

Related

Apple Shortcuts SSH stop command

I have raspberry pi that is controlling some LEDs strip.
I have python script that is running in loop in order to control the LEDs.
At the moment I can start script by terminal and use CTRL+C command to stop it. When script is stopped all LEDs turn off.
I made Apple Shortcut to send same SSH command to RPi to start the script. When command is send shortcut stays in "active" mode (it shows the square STOP icon), even if I stop the shortcut everthing is running okay, but I can't figure out a way to send CTRL+C command to SSH after leaving application on iOS device.
Can anyone help, give me some idea?
Kind Regards

Docker for Windows auto startup

I've installed Dockers for Windows. Every time I start my computer it does not start up properly. I am always faced with this dialog.
I've tried starting and stopping the service, but it never seems to startup properly upon windows startup.

What happens to TFS Build service when running in Interactive Mode?

I am trying to setup a build agent to build my Win8 app, which I'm told I should be able to do on a Server 2012 machine.
Everything was going well, until the step told me to stop the build service and run it in 'interactive mode'.
What this appears to do, it make the service run with a command prompt saying "I'm running in interactive mode, press escape when done" (When I pressed escape the build service stopped).
My question is this, if I need to run the build service in interactive mode for win8 builds, how will I cope for the inevitable situation when the server restarts, or some admin logs the user out? presumably the build service will stop.
Is there a better way to handle this?
unless there is a specific reason why you need to run in interactive mode, i was building win8 apps all last year on a 2012 server running with out interactive mode and it ran fine. try it without and see what happens

BB10 start applications from command line

I've followed the instructions here:
BB10 Cascades Command Line Development
Now I've got a makefile project, which can compile and deploy my application to a connected device. The only problem is, I can't start the application remotely. I've created a special test version, which simply runs an automated test and then quits, so the next logical step would be starting the application, and waiting for it to exit (it would be great if I could monitor stdout and stderr) or kill it if it takes too long.
What I'm trying to accomplish (to avoid the xy problem) is the integration with a Jenkins server we already use for other platforms. E.g.: on Android we use robotium to achieve the same degree of integration.
blackberry-nativepackager allows you to launch the application similar to androids adb.
Just call it like
blackberry-nativepackager -launchApp <path to bar file> -device <devices ip address> -password <your pwd>

How to check if background script has stopped with Rails?

I have a script which keeps running on a screen as background job continuously on my Ubuntu server. But sometimes if some error occurs it can stop. Is there any way by which I can monitor it and get some alert when it stops instead of manually logging and checking that the script is running or not ??
I am running my server on Linode and Ubuntu is 10.04 server edition.

Resources