Skip to content

Extendscript ThioUtilsLib External Library DLL

ThioJoe edited this page Oct 10, 2025 · 3 revisions

Extendscript external libraries allow adding native javascript methods, functions, etc that can be used with Extendscript. I've created my own to add various functionality that wasn't built into extendscript. Currently there's just one method for playing a system error sound but I'll add more to it over time.

How to Use

1. Get the latest ThioUtils.dll from the Releases page of this repo, and the wrapper script ThioUtilsLib.jsx, and put them in the same folder.

2. Include the wrapper script in your own extendscript script. Or if you are using ThioUtils.jsx for Premiere Pro, that will automatically include it already.

Example:

#include "C:\\Whatever\\Path\\ThioUtilsLib.jsx";

3. After that, a new object called ThioUtils will be available such as:

// Play system error sound
ThioUtilsLib.systemBeep();
// Play a specific sound from the Windows Media folder:
ThioUtilsLib.playSoundAlias("Windows Information Bar.wav")
// Copy a string to the clipboard
ThioUtilsLib.copyTextToClipboard(whateverStringVariable)

Currently available methods

  • ThioUtilsLib.systemBeep(uint)

    • Plays the standard windows error sound. Useful if you want to indicate an error / failure without popping up a message box.
    • It takes a uint parameter to specify one of the default sounds like 0x00000000 for Default OK, 0x00000010 for Default Error
      • The wrapper script will use 0 as default if no parameter is provided
    • It supports any that are defined here but many are the same:
  • ThioUtilsLib.playSoundAlias(string)

    • Plays a system sound by alias or filename within the C:\Windows\Media folder
  • ThioUtilsLib.copyTextToClipboard(string)

    • Copies an inputted string into the windows clipboard