Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 09-21-2020, 01:30 PM   #1
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 7,432
Default Closing script window should not run script... (FIXED)

This is probably by design, maybe a simple oversight...

If I edit a script, and then click the x at the top right corner of the script editor, I get asked if I want to save the script before closing. Thank you, this is the nice thing to do.

Surprisingly though, clicking OK to save runs the script! This is unexpected, and prone to mishaps. If I had wanted to run the script, I would have clicked Start or hit Ctrl+S. I clicked the x explicitly because I did not want to run it, just save the edits.

In my case those final edits are typically removing comments and debug code. There is no reason to run the script, just save it, please.

Reaper v6.14/x64 W7x64
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...

Last edited by Fabian; 08-17-2021 at 10:20 AM.
Fabian is offline   Reply With Quote
Old 09-21-2020, 01:47 PM   #2
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Yes, this isn't very useful and should be changed imho.

As a little workaround, you can hit Ctrl+Shift+S to save the script without running before closing it via the x-button.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-21-2020, 02:43 PM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,746
Default

Yeah I agree, fixing!

Also: as a workaround, hold shift when choosing "Yes" to save and it won't run it...
Justin is online now   Reply With Quote
Old 09-21-2020, 04:37 PM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Thanks Justin
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 09-22-2020, 03:03 AM   #5
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 7,432
Default

Quote:
Originally Posted by Justin View Post
Yeah I agree, fixing!

Also: as a workaround, hold shift when choosing "Yes" to save and it won't run it...
Great! Thanks.
__________________
// MVHMF
I never always did the right thing, but all I did wasn't wrong...
Fabian is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.