← Back to blog

Getting Started with Affinity Scripts

Learn how to run JavaScript scripts in Affinity Designer, Photo, and Publisher.

tutorialgetting-started

Affinity apps ship with a built-in JavaScript scripting engine. This guide covers the basics.

Prerequisites

  • Affinity Designer, Photo, or Publisher (version 2 or later)
  • A text editor for writing scripts

Your First Script

Open Affinity and go to File > Scripts > Run Script. Paste this:

alert('Hello from middledot!');

Click Run and you should see a dialog box.

What’s Next