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
- 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 withOn block errorbubbling and debugger stepping, losslessRobinScriptCodec, coordinatedFlowStore, 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.padflowor.robinfiles with typed inputs and JSON output, exporting Robin scripts, managing Keychain credentials, and running the background LaunchAgent trigger daemon.
- 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,WKWebViewand 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
.xlsxediting (preserving existing styles, column widths, and merged cells), SQLite with parameterized?bindings andBegin/Commit/Rollbacktransactions, and PDFKit text/page/image actions with password unlocking. - System, Scripting & macOS Integrations: Persistent interactive
/bin/zshterminal 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.
- 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.
Run the test suite:
swift testBuild a local debug .app bundle:
./scripts/build-app.sh debug
open dist/MacAutomate.appBuild a universal (arm64 + x86_64) Developer ID signed, notarized, and stapled .app, .dmg, and .zip:
./scripts/build-app.sh --release-dist --profile <notarytool-profile>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 --jsonOther commands:
macautomate-cli list
macautomate-cli actions [query]
macautomate-cli robin <flow-name-or-path>
macautomate-cli trigger-daemonReleased 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.