Help with Python Scripting

Help for Audacity 2.x.x on macOS.
Forum rules
ImageThis forum is for Audacity 2.x.x on macOS 10.4 and later.
Please state which version of macOS you are using,
and the exact three-section version number of Audacity from "Audacity menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
PatrickHXXVIII
Posts: 1
Joined: Sat Aug 08, 2020 10:00 pm
Operating System: macOS 10.13 High Sierra

Help with Python Scripting

Post by PatrickHXXVIII » Sat Aug 08, 2020 10:22 pm

Version:
MacOS 10.13.3
Audacity 2.2.1

Hello, I've been scouring these forums and the web and while I've found it's possible, and what's supported, I can't find or figure out how I can use Python to script Audacity. Put simply what I need to do is create a script that will open a new file (New:) and start recording (Record1stChoice:), and one that will stop recording (Stop:) and export the recording with a given filename (Export2:). Could someone help or provide example code of how to work with Audacity via Python?

Thank you.

Post Reply