Prevent prompt "Save changes before closing"?

This read-only archive contains discussions from the Adding Feature forum.
New feature request may be posted to the Adding Feature forum.
Technical support is available via the Help forum.
pstein
Posts: 29
Joined: Sun Dec 30, 2007 5:08 pm
Operating System: Please select

Prevent prompt "Save changes before closing"?

Post by pstein » Tue Jun 18, 2013 11:10 am

After having dragged a MP3 onto Audacity I want to close the whole prgm.

Much to my surprise I got a prompt "Save changes before closing?"

How can I disable this prompt before close?

How can I show it only when I really edit something before?

Peter

kozikowski
Forum Staff
Posts: 69357
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Prevent prompt "Save changes before closing"?

Post by kozikowski » Tue Jun 18, 2013 2:36 pm

MP3 files have to be transcoded into Audacity 32-floating internal format, so yes, you have changed the MP3 by importing it. We warn people never do production in MP3. Koz

pstein
Posts: 29
Joined: Sun Dec 30, 2007 5:08 pm
Operating System: Please select

Re: Prevent prompt "Save changes before closing"?

Post by pstein » Wed Jun 19, 2013 3:44 am

kozikowski wrote:MP3 files have to be transcoded into Audacity 32-floating internal format, so yes, you have changed the MP3 by importing it. We warn people never do production in MP3. Koz
Ok, but this was not the question.

I asked if I can disable this prompt resp. automatically answer it with "NO" when I exit Audacity.

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

Re: Prevent prompt "Save changes before closing"?

Post by steve » Wed Jun 19, 2013 4:41 am

pstein wrote:I asked if I can disable this prompt
No, that prompt cannot be disabled.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Prevent prompt "Save changes before closing"?

Post by Gale Andrews » Wed Jun 19, 2013 10:32 am

kozikowski wrote:MP3 files have to be transcoded into Audacity 32-floating internal format, so yes, you have changed the MP3 by importing it. We warn people never do production in MP3. Koz
You have not changed the MP3 - you have changed the project by copying the MP3 into it, leaving the MP3 unchanged. But users can and do delete the MP3 after importing it, so could then quit by accident when they meant to export an audio file. Or you could have added a lot of envelope points to the imported audio, which will be rendered when you export, but cannot be stored in any type of audio file.

It is true though if you re-export as an MP3 you have lost audio quality, whether you export over the same file or not.

I'll add your vote to be able to ignore the Save Changes prompt, but it will probably never happen, at least without restrictions - see http://forum.audacityteam.org/viewtopic ... 50#p215550 .


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

charlesh3
Posts: 12
Joined: Mon Jan 07, 2013 5:40 am
Operating System: Please select

Re: Prevent prompt "Save changes before closing"?

Post by charlesh3 » Sun Sep 14, 2014 3:34 am

I sure wish we could disable the message. I listen to dozens of new mp3's at a time, and it's a pain to have to click on the message every exit. I would also prefer that there be a way to start playing automatically when I click on an mp3 file.

Chuck

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Prevent prompt "Save changes before closing"?

Post by Gale Andrews » Sun Sep 14, 2014 7:39 pm

charlesh3 wrote:I sure wish we could disable the message. I listen to dozens of new mp3's at a time, and it's a pain to have to click on the message every exit. I would also prefer that there be a way to start playing automatically when I click on an mp3 file.
OK, your votes will be counted. But Audacity is an editor, not a player. That is why the safety precautions are there.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

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

Re: Prevent prompt "Save changes before closing"?

Post by steve » Sun Sep 21, 2014 11:07 am

charlesh3 wrote: I would also prefer that there be a way to start playing automatically when I click on an mp3 file.
Most audio players allow you to do that. Try associating MP3 files with your favourite audio player (note as Gale wrote, Audacity is an "editor" rather than a "player").
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

BrianP007
Posts: 8
Joined: Sat Apr 04, 2015 11:43 pm
Operating System: Please select

Re: Prevent prompt "Save changes before closing" IF UNNECESS

Post by BrianP007 » Sun Apr 05, 2015 1:59 am

Quotes from The Experts:
A) "you have changed the MP3 by importing it"
B) "that prompt cannot be disabled."
C) "users can and do delete the MP3 after importing it"
D) "your votes will be counted" ... "but it will probably never happen"

The Rest of the Story:
A) WRONG! WE did not change ANYTHING. There is NOTHING TO SAVE until WE make a change of some sort.
B) To paraphrase: "WE, the Audacious Gurus at Audacity, have made THE Decision. Until YOU, laypersons who could not begin to fathom the technical complexities, know more than WE do, the decision is FINAL!"
C) Protecting lunkhead users from themselves is far beyond the scope of a waveform editor.
D) SAME AS B, but more diplomatic.

The vote is clear. 123,456,789 to NUKE THE ANNOYING PROMPT *_WHEN_UNNECESSARY_*; 3 votes to "let the intelligentsia decide what is best for wrong-thinking rabble". The dismissive edict petrifying the prompt seems a bit too confrontational. "We are still devising a technical solution" sounds much better than "NEVER HAPPEN!!" :)

And your think-tank needs to be topped off. You are overlooking the industry standard technical fix for YOUR Design Flaw; a DIRTY FLAG!
1) After you transcode to float, set the USER_DIRTY_FLAG=0 and return control to the user
2) On any data-altering editing done by the user, increment the USER_DIRTY_FLAG
3) At close time, if(USER_DIRTY_FLAG==0) { exit() } else { accost_user_with_pedantic_save_yer_junk_prompt() };

This fixes the design deficiency of pestering users with the inane question of whether they would like to SAVE ALL _ZERO_ CHANGES they made. This almost entirely obviates the need for a user preference to Nuke_The_Prompt.

How horrible would it be to install the requested preference (with a default of "ALWAYS_ASK")? It's their foot. If they want to shoot, let 'em! I will opt for "PROMPT_IF_WAVE_WAS_ALTERED".

Are you building this tool for us or for you?

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Prevent prompt "Save changes before closing" IF UNNECESS

Post by Gale Andrews » Sun Apr 05, 2015 4:15 pm

Your post is verging on a troll. Your vote will be counted.
BrianP007 wrote:1) After you transcode to float, set the USER_DIRTY_FLAG=0 and return control to the user
2) On any data-altering editing done by the user, increment the USER_DIRTY_FLAG
3) At close time, if(USER_DIRTY_FLAG==0) { exit() } else { accost_user_with_pedantic_save_yer_junk_prompt() };
You've read the reasons against.

Audacity is open source. You can modify it to do anything you like if you can program and recompile it, and give or sell your version to anyone else as long you keep it open source and don't call it Audacity.


Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

Locked