On Schedule

  1. ScheduledWeeklyonMon, Tue, Wed, Thu, Friat09:00:00

Schedule AppleScript File

  1. Run AppleScript using on run argv if (count argv) is 0 ... with , timeout 120 seconds, and stop this flow if unsuccessful

Automate a script you already maintain

When: The configured weekday schedule fires. Do: Run AppleScript loads your configured file from disk and runs it. The file is read on each execution, so later changes to that file do not need to be pasted back into the Rule.

A report, calendar or maintenance script can run without opening Script Editor each time. The Rule supplies scheduling and file loading; your script supplies the actual work.

Configure and try it

  1. Choose a trusted .scpt or .applescript file that you already understand and have run manually.
  2. In Run AppleScript, add a text Argument containing its absolute path or a path beginning with ~/.
  3. Review the embedded loader and set the days and time in the Trigger.
  4. Start with a harmless script and a temporary near-future schedule while the Mac is awake.
  5. Enable the Rule, inspect its execution and verify the chosen script’s expected result before restoring the intended schedule.

Requirements and limits

Run AppleScript does not require Pro. The loader stops with a configuration error if no file path Argument is present. This imported sample needs your actual file path before it can run.

The file can request Automation or folder access. Only load scripts you trust. The loader supplies no arguments to your saved script and has a 120-second timeout. It does not wake a sleeping Mac or guarantee compiled-script compatibility across macOS versions.

The direct Rulr script-file picker and this compiled-file loader have different format support. For entered text processing, see Process Text with AppleScript.