Scriptarian

Scripting Studio for macOS

Scriptarian allows you to easily automate macOS using the Swift programming language, providing a modern alternative to AppleScript.

Main Scriptarian Screen

Getting Started

Getting started with Scriptarian is easy. When you first launch the Scriptarian, it analyzes all of your installed applications for AppleScript support and dynamically generates native Swift interfaces for them.

Discover Apps in Scriptarian

Scriptarian uses a multitude of heuristics and transformation passes to ensure AppleScript naming conventions map nicely to Swift. For example, the property name uses ssl gets imported as usesSSL, url string gets imported as urlString, and the class name PXCanvasDocument gets imported as CanvasDocument.

Swift

Scriptarian is entirely built around the Swift programming language, letting new programmers get up and running quickly. Thanks to Swift's powerful error handling model and focus on safety, you can write robust code with little effort. Meanwhile, advanced programmers can take advantage of powerful object-, functional-, and protocol-oriented paradigms.

ScriptingKit

In addition to full support for the Swift Standard Library, Scriptarian includes ScriptingKit, a scripting framework we built from the ground up with Swift in mind. It lets you communicate with any AppleScript-enabled app and even provides various utility functions for speech synthesis, sound playback, file management, process management, and more.

Here's all it takes to sum up the size of your iTunes library:

let tunes = iTunes.Application()
var totalSize = Int64()

for track in tunes.tracks {
    totalSize += track.size ?? 0
}

print("Total size: \(totalSize / 1024 / 1024) MB")

Code Completion

Learn by exploring with Scriptarian's smart and context-aware code completion system. If you've used Xcode, you'll feel right at home.

Code Completions in Scriptarian

Inline Errors

Made a mistake? No problem. Scriptarian detects errors in your code as you type, and in many cases, it can offer suggestions for fixing them.

Inline Errors in Scriptarian

Debugger

Powered by LLDB, Scriptarian offers a first-class debugger that lets you inspect variables and step through the execution of your programs with ease.

Debugger in Robotary

Executable Export

Scriptarian can compile your scripts into native executables that you can invoke from the Terminal, Automator workflows, and third-party apps such as Alfred and FastScripts.

Sharing

Made something great you want to share with the world? Scriptarian integrates with Sharing services on macOS and even lets you publish your code on GitHub Gist.

Examples and Documentation

Need some inspiration? Scriptarian's built-in Examples Gallery lets you learn by example. Made something cool? We'd love to include it.

Scriptarian also includes a built-in documentation viewer so you can quickly reference all of the Swift and ScriptingKit API available to you. We even dynamically generate documentation for all of your AppleScript-enabled apps.

Easy Deployment

Scriptarian has no external dependencies - perfect for deployment in schools and the workplace. You don't even need Xcode installed to use Scriptarian.

Educational Discounts

We're offering 50% educational discounts as well as volume purchases to students, teachers, researchers, and schools. Please get in touch for more information (and be sure to email us from your .edu email address if you have one).

Technology

Scriptarian is written in Swift itself, and it takes full advantage of native system technologies including Apple Events, XPC services, GCD, and more.