# Global Variable

**URL:** https://community.mp3tag.de/t/global-variable/68286
**Category:** Support
**Created:** [April 22, 2025, 11:56am UTC](https://community.mp3tag.de/t/global-variable/68286 "2025-04-22T11:56:42Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![make-nz](https://community.mp3tag.de/user_avatar/community.mp3tag.de/make-nz/32/18236_2.png) [@make-nz](https://community.mp3tag.de/u/make-nz)
#### Post date: [April 30, 2025, 5:38pm UTC](https://community.mp3tag.de/t/global-variable/68286/21 "2025-04-30T17:38:02Z")

</div>

> [@LyricsLover](#):
>
> Can a Tool have a keyboard shortcut like Ctrl + 1: [Yes](https://docs.mp3tag.de/customization/options/tools/).
> 
> There is no way to guess when you want to finish your work in Mp3tag and write the last processed filename. We don't have a procedure like "on Mp3tag exit do this or that".

**This is great!** 👍  
Because I use this option a lot and when you have +500 file in view,  
but have to stop working on them… Perfect for my use case, thank you!

 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/b/dbfeb8eca51b6875256e694810a2662b49e9b998.png)  
("on Mp3tag exit do"  
`JavaScript: window.onbeforeunload`  
Who knows what the future brings 😉)

---

<div class="post-metadata">

### Author: ![Roland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/roland/32/8001_2.png) [@Roland](https://community.mp3tag.de/u/Roland)
#### Post date: [April 30, 2025, 5:51pm UTC](https://community.mp3tag.de/t/global-variable/68286/22 "2025-04-30T17:51:23Z")

</div>

> [@LyricsLover](#):
>
> There is no such thing as "procedure" in Mp3tag.  
> Can this be done with an Action: No.

I call "Action" "Procedure" and vice versa.

> [@LyricsLover](#):
>
> We don't have a procedure like "on Mp3tag exit do this or that".

If you nest the start of MP3Tag in a batch with a "afterwards do this command" you can do something immediately a finishing the program.

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [May 30, 2025, 5:51pm UTC](https://community.mp3tag.de/t/global-variable/68286/23 "2025-05-30T17:51:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Previous page](https://community.mp3tag.de/t/global-variable/68286.md?page=1)
