Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scripting: Add an "Exit2:" command that will exit without prompting to save the project #2193

Open
Tracked by #3053
SteveDaulton opened this issue Nov 27, 2021 · 0 comments
Labels
Enhancement Request Or feature requests. Open-ended requests are better suited for discussions. macros / scripting Bugs related to macros and scripts minor feature low impact feature

Comments

@SteveDaulton
Copy link
Member

SteveDaulton commented Nov 27, 2021

Is your feature request related to a problem? Please describe.
When driving Audacity via mod-script-pipe, the user may want to shut down the computer on completion. This cannot be done conveniently because after sending the "Exit:" command, Audacity prompts to save the project (even if it is empty).

Describe the solution you'd like
A new command "Exit2:" that is available for scripting that will quit Audacity without prompting to save.

Describe alternatives you've considered
Issue the commands:

  1. Select All
  2. Remove Tracks (project is now empty)
  3. Select 1 second (any small amount will do - we don't want to be using a lot of disk space)
  4. Generate silence (or generate anything else - this is just to avoid being prompted about saving an empty project)
  5. SaveProject2: (save it somewhere convenient)
  6. Exit:
  7. and then delete the unwanted AUP3 using the scripting language.

While this solution works, it is not convenient, and it is platform dependent (for saving and deleting the unwanted AUP3 file)

Additional context
Suggested on the forum here: https://forum.audacityteam.org/viewtopic.php?p=440395#p440395

@petersampsonaudacity petersampsonaudacity added the Enhancement Request Or feature requests. Open-ended requests are better suited for discussions. label Nov 28, 2021
@LWinterberg LWinterberg added this to Help wanted in Community Contribution via automation Mar 3, 2022
@LWinterberg LWinterberg added the macros / scripting Bugs related to macros and scripts label Mar 3, 2022
@LWinterberg LWinterberg moved this from Help wanted to Help wanted / macros in Community Contribution Mar 3, 2022
@LWinterberg LWinterberg added the minor feature low impact feature label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Request Or feature requests. Open-ended requests are better suited for discussions. macros / scripting Bugs related to macros and scripts minor feature low impact feature
Projects
Status: Out of scope - technical
Community Contribution
Help wanted / macros
Development

No branches or pull requests

3 participants