Bugzilla – Bug 2295
ENH: cannot add a comment in a Macro with Audacity
Last modified: 2020-08-17 07:28:59 UTC
It is impossible to use Audacity to add a comments to a Macro (in Manage Macros). Comments can be very useful in longer or more complex Macros (Macros are effectively a form of programming language) It can be done but the user has to "discover" where their Macros are stored and then text edit the TXT file. There is no way to "discover" the location from the app so a RTFM is required. This is this esoteric advanced/expert user stuff.
Steve wrote offline >Lines of text that are not recognised Macro commands are simply ignored. >I don't think this is an intentional "feature", but it is useful to be able >to add comments to a Macro script. A downside of this "unofficial feature" >is that if you modify the the Macro with the Macro Editor, the "comment" >lines are stripped out. If and when this feature is implemented we need to ensure that such somment lines do not get stripped out when the Macro is edited in Audacity.
DEVEL - FIX MADE https://github.com/audacity/audacity/commit/894867d692e92a3893741b23dc0769b3c304ba5a Use the 'comment' command from the edit macros dialog.
(In reply to James Crook from comment #2) Testing on W10 with Audacity 3.0.0 894867d This fails on W10 - I used the new Comment command edited the parameters adding some text. When I try to run the Macro it stops (silently - nor error or warning) when it hits the comment.
Ooops. That was an embarrassing mistake. Try now: https://github.com/audacity/audacity/commit/a278eff55bb8dd647ffec91dbdd212bfacec0ca2 I had the comment command set to always fail!
(In reply to Peter Sampson from comment #3) On Linux, the Macro appears to not run at all if there is a "Comment:" (In reply to James Crook from comment #4) Oops :) That fixes it.
(In reply to James Crook from comment #4) testing on W10 with Audacity 3.0.0 a278eff Fixes it on W10 too
(In reply to James Crook from comment #4) testing on macOS 10.15.6 Catalina with Audacity 3.0.0 a278eff Fixes it on Mac too