Old 09-21-2020, 01:30 PM   #1
Fabian
Human being with feelings
 
Fabian's Avatar
 
Join Date: Sep 2008
Location: Sweden
Posts: 6,043
Default Closing script window should not run script...

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...
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: Apr 2020
Location: Leipzig
Posts: 1,436
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, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1294 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
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: 12,983
Default

Yeah I agree, fixing!

Also: as a workaround, hold shift when choosing "Yes" to save and it won't run it...
Justin is offline   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: Apr 2020
Location: Leipzig
Posts: 1,436
Default

Thanks Justin
__________________
Use you/she/her, when contacting me, please. Thanks :) Not mentoring via PMs, sorry.
Ultraschall-API - 1294 ReaScript functions for Reaper - Reaper Internals - Developerdocs4Reaper - Donate, if you wish
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: 6,043
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 10:15 PM.


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