# Glyphs 4: Accidental script overwriting in the Scripting Window

**URL:** <https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484>\
**Category:** Glyphs\
**Created:** [October 19, 2026, 4:36pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484 "2026-10-19T16:36:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![sugarfree](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@sugarfree](https://forum.glyphsapp.com/u/sugarfree)\
**Post date:** [October 19, 2026, 4:36pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/1 "2026-10-19T16:36:01Z")

</div>

With a saved script selected in the sidebar, entering and running temporary code replaced the script’s contents on disk without a noticeable warning.

It’s easy to mistake the editor for a temporary execution area. Could saved scripts be more clearly distinguished from temporary macros, with a warning or recoverable backup before overwriting?

---

<div class="post-metadata">

**Author:** ![sugarfree](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@sugarfree](https://forum.glyphsapp.com/u/sugarfree)\
**Post date:** [October 24, 2026, 4:57pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/2 "2026-10-24T16:57:53Z")

</div>

Is there a way to lock existing scripts so that they cannot be accidentally overwritten in the scripting window?

---

<div class="post-metadata">

**Author:** ![mekkablue](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/mekkablue/32/23_2.png) [@mekkablue](https://forum.glyphsapp.com/u/mekkablue)\
**Post date:** [October 25, 2026, 2:16pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/3 "2026-10-25T14:16:14Z")

</div>

Not sure what to make of this. You overwrite a macro deliberately, and the app shouldn’t allow you to? Under what circumstances should the app accept your changes then?

Maybe this helps: Since all macros correspond to concrete files on disk you can get back to a previous version with Time Machine.

---

<div class="post-metadata">

**Author:** ![GeorgSeifert](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/georgseifert/32/259_2.png) [@GeorgSeifert](https://forum.glyphsapp.com/u/GeorgSeifert)\
**Post date:** [October 25, 2026, 10:45pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/4 "2026-10-25T22:45:56Z")

</div>

Glyphs 4.2 changed the behaviors (and brought it closer to how it worked in Glyphs 3) so that scripts are automatically saved.

---

<div class="post-metadata">

**Author:** ![sugarfree](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@sugarfree](https://forum.glyphsapp.com/u/sugarfree)\
**Post date:** [October 26, 2026, 4:29am UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/5 "2026-10-26T04:29:52Z")

</div>

For macros, maybe, but for the existing scripts it’s really dangerous. There should be a requirement to save the changes, in order to make them permanent. It’s also inconsistent with the Glyphs app. I can open a project, do some experimental changes, and close it without saving. Safe and predictable.

---

<div class="post-metadata">

**Author:** ![FlorianPircher](https://forum.glyphsapp.com/user_avatar/forum.glyphsapp.com/florianpircher/32/30457_2.png) [@FlorianPircher](https://forum.glyphsapp.com/u/FlorianPircher)\
**Post date:** [October 26, 2026, 1:31pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/6 "2026-10-26T13:31:40Z")

</div>

I prefer the auto-save behavior. This way it’s more consistent between macros and scripts, which are all managed in the same Scripting Window now in Glyphs 4.

---

<div class="post-metadata">

**Author:** ![sugarfree](https://forum.glyphsapp.com/letter_avatar_proxy/v4/letter/s/57b2e6/32.png) [@sugarfree](https://forum.glyphsapp.com/u/sugarfree)\
**Post date:** [October 26, 2026, 7:53pm UTC](https://forum.glyphsapp.com/t/glyphs-4-accidental-script-overwriting-in-the-scripting-window/37484/7 "2026-10-26T19:53:53Z")

</div>

I don’t know what to say. You may be more organized and proficient, but I already have had a few unintentional script overwrites since switching to Glyphs 4. It’s not a pleasant feeling.
