Home/Q&A/What usually breaks when macOS automation runs unattended for weeks?

What usually breaks when macOS automation runs unattended for weeks?

Updated · airankrush

Direct answer

It depends. Scheduled scripts that are pure command line can generally keep running; automation that depends on the interface, on the Apple Account staying signed in, or on third-party apps will most likely hit a moment within a few weeks where someone has to click something.

Basis

  • Permissions get reconfirmed by the system: newer macOS versions ask again from time to time whether an app may keep recording the screen. If nobody answers the prompt, a process that depends on screenshots stops.
  • The Apple Account sign-in expires: the system occasionally asks you to re-enter the Apple Account password or verify once, and until then Messages and iCloud sync may sit in a half-stalled state.
  • Apps update themselves: UI scripts work from button names and menu structure, and both can change after an automatic update. You can turn off automatic updates in that app's settings and upgrade by hand when you have time to retest.
  • Dialogs steal focus: update reminders, crash reports and “Do you want to keep changes?” dialogs block the next step of a UI script.
  • Restarts: after maintenance or a restart you triggered, the user session and each app have to come back up, and if the order is wrong the script starts before the app is open.

Information as of .

Boundaries: when the answer is different

All of this is general to automation on macOS and happens just the same on a Mac you own; the only difference is that with a rented machine you cannot walk over and look at the screen. The network and hardware at the deployment site can also fail; that part is ours to handle, under the rules in the refund policy, and we do not commit to any uptime figure. A major system upgrade is an operation that can cut your connection, so contact support first and do not let an automatic update complete without your knowledge. Scripts that stop working because Apple or a third-party app changed its behavior are outside what we can guarantee.

How to do it

  1. Have every run write one timestamped log line and send a heartbeat to somewhere outside the machine, for example an email to yourself.
  2. Start the script by checking its preconditions: is the target app running, is the account signed in. If not, raise an alert and exit.
  3. Turn off automatic updates for the key apps and note the version that currently works.
  4. Connect to the desktop once a week from your phone or computer and clear the system prompts that have piled up.
  5. Before going live, restart once from the customer console and watch which parts do not recover by themselves.

Use case

This question belongs to the use case: iMessage, AppleScript and Shortcuts on a rented Mac mini: it runs, but Apple decides about your account

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A