Automation

Automate Report creation, remotely set settings, and control licenses with the FoolCat API. You can also trigger custom scripts on specific events, start run custom processes or other apps, and integrate FoolCat into existing workflows.

Requirements

  • FoolCat Pro license

  • API: FoolCat 20.1 or newer

  • Scripting: FoolCat 25.3 or newer

API

You can tell FoolCat to do something by calling the app URL: foolcat://. You can call this from any app or script that can open a URL.

Copy/paste the URL below in a web browser, press Enter, and EditReady will open.

editready://open

You can also use a shell, copy/paste the command below, press Enter, and EditReady will open.

open 'foolcat://open'

Activate

foolcat://activate?key=<your-license-key>

Deactivate

Create Report

Scripting

You can attach scripts (AppleScript or Python) to the following events:

  • FoolCat Started

  • Report Created

FoolCat Started

Fires once when launching FoolCat. Has no payload.

Report Created

Fires when a Report has been created, and has the following payload:

Python

When a Python script is executed, the event payload is passed as a JSON string in the first command-line argument (sys.argv[1]). You can parse it into a dictionary as follows:

AppleScript

When an AppleScript script is executed, the event payload is injected into the script by finding key names, e.g. "{FileConversionCompleted_status}" , and replacing them with values. You can test this as follows:

Event Log

All events and script execution results are recorded in the Event Log. You can find the log file at:

Last updated