Skip to content

About

Native macOS desktop workflow automation app, Robin script engine, and CLI written in Swift and SwiftUI

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MacAutomate

Native macOS desktop workflow automation application and CLI written in Swift and SwiftUI, modeled on Power Automate Desktop's numbered-action designer, %Variable% expression language, and Robin script format.

Documentation and signed releases: macauto.patchcraft.dev

Architecture

  • PowerAutomateCore (Sources/PowerAutomateCore): Flow data model, %Variable% expression evaluator (PADValue, PADDataTable, PADDataRow, collection/table literals, slicing, short-circuit boolean operators), typed static validator (FlowValidator), step/block execution engine with On block error bubbling and debugger stepping, lossless RobinScriptCodec, coordinated FlowStore, and 284 built-in actions across 31 categories.
  • PowerAutomateApp (Sources/PowerAutomateApp): Native SwiftUI Console (My flows, Examples, Monitor, Settings) and Flow Designer (Actions library, numbered step canvas with multi-select, Robin clipboard copy/paste, collapsible blocks, breakpoints, Find & Replace, live Variables/UI Elements/Images inspector, and live Errors/Execution Logs drawer) plus desktop recorder, element picker, and coordinate picker overlays.
  • PowerAutomateCLI (Sources/PowerAutomateCLI): Headless CLI (macautomate-cli) for validating flows, running .padflow or .robin files with typed inputs and JSON output, exporting Robin scripts, managing Keychain credentials, and running the background LaunchAgent trigger daemon.

Capabilities

  • UI, Screen & Browser Automation: macOS Accessibility (AXUIElement) selector resolution with dynamic %Variable% attributes and fallback selectors, template image matching, Apple Vision OCR and barcode scanning, WKWebView and Safari/Chrome browser automation (popups, downloads, shadow DOM/same-origin iframes, multi-column paginated extraction).
  • Files, Data & Spreadsheets: File, folder, CSV, XML/XPath, ZIP/Unzip, non-destructive .xlsx editing (preserving existing styles, column widths, and merged cells), SQLite with parameterized ? bindings and Begin/Commit/Rollback transactions, and PDFKit text/page/image actions with password unlocking.
  • System, Scripting & macOS Integrations: Persistent interactive /bin/zsh terminal sessions, shell/AppleScript/JavaScriptCore/Python execution, Keychain credential vault, AES-256-GCM and SHA/HMAC cryptography, HTTP/SFTP/IMAP/SMTP, EventKit Calendars and Reminders, Spotlight (mdfind), Speech transcription, and LaunchAgent triggers.

Requirements

  • macOS 15 (Sequoia) or later on Apple Silicon (arm64) or Intel (x86_64).
  • Xcode / Swift 6 toolchain to build from source (zero external SwiftPM package dependencies).
  • Standard macOS privacy permissions as needed per flow: Accessibility, Screen Recording, Automation (Apple Events), Input Monitoring, and Calendars/Reminders.

Build and Test

Run the test suite:

swift test

Build a local debug .app bundle:

./scripts/build-app.sh debug
open dist/MacAutomate.app

Build a universal (arm64 + x86_64) Developer ID signed, notarized, and stapled .app, .dmg, and .zip:

./scripts/build-app.sh --release-dist --profile <notarytool-profile>

CLI Usage

Validate and run the included end-to-end verification flow (Examples/EndToEndSelfTest.padflow):

dist/MacAutomate.app/Contents/MacOS/macautomate-cli validate Examples/EndToEndSelfTest.padflow
dist/MacAutomate.app/Contents/MacOS/macautomate-cli run Examples/EndToEndSelfTest.padflow --input RunLabel=Local --json

Other commands:

macautomate-cli list
macautomate-cli actions [query]
macautomate-cli robin <flow-name-or-path>
macautomate-cli trigger-daemon

License

Released under the BSD 3-Clause License. See LICENSE.

MacAutomate is an independent open-source macOS automation project and is not affiliated with or endorsed by Microsoft Corporation.

About

Native macOS desktop workflow automation app, Robin script engine, and CLI written in Swift and SwiftUI

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages