Dot TXT??

Help for Audacity on macOS.
Forum rules
ImageThis forum is for Audacity 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
kozikowski
Forum Staff
Posts: 68913
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Dot TXT??

Post by kozikowski » Tue Apr 20, 2021 12:55 am

Somebody said Tools > Nyquist Plugin Installer "knows" how to get rid of the .txt that some computers insist on appending to nyquist download filenames.

Is this a fact and how far back in Audacity history does that go?

Koz

steve
Site Admin
Posts: 80726
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Dot TXT??

Post by steve » Tue Apr 20, 2021 2:12 am

kozikowski wrote:
Tue Apr 20, 2021 12:55 am
Somebody said Tools > Nyquist Plugin Installer "knows" how to get rid of the .txt that some computers insist on appending to nyquist download filenames.
That would have been me.
kozikowski wrote:
Tue Apr 20, 2021 12:55 am
Is this a fact and how far back in Audacity history does that go?
It goes back to when it was first shipped with Audacity. 21st Mar 2019, Version 2.3.1

Code: Select all

;If string ends in ".ny.txt", replace with ".ny"
(defun fix-ext (fname)
  (setf ln (length fname))
  (if (and (> ln 7)
           (string-equal (subseq fname (- ln 7) ln) ".ny.txt"))
    (subseq fname 0 (- ln 4))
    fname))
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply