Pasteon
Custom Workflows for Mac

Build visual and scriptable clipboard actions on Mac.

Transform copied content with visual Steps or local scripts, choose the input types, and run the Workflow directly from Pasteon’s action list.

Visual Steps or codeSimple and Script Filter modesLocal script execution
Workflow Editor
StepsEnabled
1
Match Text
Contains “user”
2
Trim Text
Whitespace and newlines
3
Change Case
snake_case
4
Return Text
Paste or copy result
+ Add Step
Inspector

Change Case

Style
snake_case
Input
{{input}}
Test resultPassed · 0.8 ms
hello world
hello_world
Choose how you build

Start visually. Drop into code when you need it.

A Workflow is the saved recipe. Its Action appears in Pasteon only when the selected clipboard item matches the inputs you choose.

1
Recommended

Steps

Arrange a linear pipeline of conditions, transforms, scripts, and one final output. Configure each step in a focused inspector and test the before and after values.

Best for: text cleanup, templates, format conversion, and file generation
2
Advanced

Code

Run inline code or an external script with your interpreter, arguments, working directory, and timeouts. Use Simple mode for one result or Script Filter for runtime choices.

Best for: custom tools, developer automation, and dynamic action lists
Step-by-step tutorial

Build a text cleanup Workflow in four steps.

This example trims copied text, normalizes its naming style, and returns the result to the app you are working in.

01 / Create

Create a Workflow and choose its inputs

Open Settings → Workflows, add a Workflow, give it a name and icon, then select the clipboard types where its Action should appear.

02 / Build

Add transforms in execution order

Add Trim Text, Change Case, or other steps. Drag to reorder them. The Output stays fixed at the end so the pipeline remains predictable.

03 / Test

Use the current clipboard as test data

Run the test without copying, pasting, or opening anything. Inspect each step’s before and after value, duration, and validation state.

04 / Run

Enable it and open Pasteon Actions

The Workflow appears directly after built-in Primary Actions. Click or press Enter to paste the result; hold Command to copy it instead.

Visual step library

Compose the common parts. Script only the special part.

Steps run from top to bottom. Conditions decide when an Action applies, transforms update the current value, and one output defines what Pasteon does with it.

Conditions

Match TextSource AppTarget App

Transforms

TrimReplace / RegexChange CaseURL Encode / DecodeJSON Format / MinifyTemplateOCR

Scripts

Inline CodeExternal ScriptCustom Interpreter

Outputs

Return TextCreate FilePNG FileOpen in FinderOpen URL
Code Workflows

One script can return a result or build a choice list.

Pasteon sends versioned JSON to stdin and reads protocol JSON from stdout. Logs belong on stderr, while timeouts, cancellation, and output limits keep runs controlled.

Simple Workflow

Execute once, return one result

Use Simple mode when one Action should produce one text, file, or URL result.

{
  "version": 1,
  "result": {
    "type": "text",
    "value": "Ready to paste"
  }
}
Script Filter Workflow

Describe choices first, execute one later

The filter phase returns lightweight candidate metadata. Pasteon runs execute only after the user chooses one candidate.

{
  "version": 1,
  "actions": [
    {
      "id": "swift",
      "title": "Generate Swift Model",
      "argument": { "language": "swift" }
    }
  ]
}
01

Filter

The script receives phase “filter” and returns up to 20 candidate Actions.

02

Choose

Pasteon displays the titles, descriptions, icons, and JSON arguments without precomputing results.

03

Execute

The chosen actionId and argument return to the script, which computes only that result.

Use stdout only for protocol JSON. Write diagnostics to stderr. Inline and external scripts share the same input and output contract.

Protocol reference

Every field, value, and runtime rule.

Use this reference when writing Code Workflows or generating .pasteon-workflow files. Field names and limits match the current Pasteon runner.

Open protocol reference →
Result behavior

Return the shape the next app needs.

Normal execution performs the result immediately. Command-click or Command + Enter switches text, files, and URLs to copy-only mode. Finder reveal always locates the file.

text

Paste or copy text

Return generated text, cleaned content, templates, code, or any other string.

files

Paste or copy files

Create files in the provided output directory and return their paths to Pasteon.

openURL

Open or copy a URL

Open supported web or mail links normally, or copy the URL in Command mode.

revealFile

Reveal a file in Finder

Locate the returned local file in Finder. Workflow tests show the path without opening Finder.

Ready on day one

Useful defaults are regular Workflows, too.

Pasteon ships these enabled by default. You can inspect, edit, disable, duplicate, export, or delete them like any other Workflow.

Convert CaseScript Filter
Paste as JSON File.json
Paste as TXT File.txt
Paste as Markdown File.md
Open in BrowseropenURL
URL Encode / DecodeScript Filter
Paste as Markdown LinkSimple
Convert ColorScript Filter
OCROCR → Text
PNG FileImage → .png
Open in FinderrevealFile
Import, export, and trust

Share recipes without hiding what they run.

Workflow files stay readable and portable. Imported Workflows remain disabled until you review and trust their code.

Import and export .pasteon-workflow JSON files.
Inline code travels with the Workflow; external scripts remain referenced by path.
Imported Workflows are disabled by default and require confirmation before scripts run.
Workflow scripts run locally with your current macOS user permissions.
FAQ

Custom Workflow questions

Do I need to know how to code?

No. Steps mode covers common conditions, text transforms, templates, scripts, and outputs in a visual linear editor. Code mode is available when you need custom behavior.

What is the difference between Simple and Script Filter?

Simple runs once and returns one result. Script Filter first returns lightweight choices, then runs the selected choice in a separate execute phase.

When does a Workflow appear in Pasteon?

An enabled Workflow appears after built-in Primary Actions when the selected clipboard item matches its input types and visual conditions.

Can a clipboard Workflow run Node.js or another script?

Yes. Code mode can use Node.js, JavaScript for Automation, Python, Shell, or another local interpreter path. Scripts run on your Mac with the working directory and timeout you configure.

Are Custom Workflows a Pro feature?

Yes. You can create, test, import, export, and run Custom Workflows with Pasteon Pro.

Build the clipboard action your work is missing.

Download Pasteon for Mac, start with a visual Workflow, and move into scripts only when your process needs them.