# macOS cannot initialize %\_counter% or %\_max\_counter% inside Actions

**URL:** https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134
**Category:** Mac
**Created:** [November 14, 2025, 6:33pm UTC](https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134 "2025-11-14T18:33:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![macdilbert](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@macdilbert](https://community.mp3tag.de/u/macdilbert)
#### Post date: [November 14, 2025, 6:33pm UTC](https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134/1 "2025-11-14T18:33:51Z")

</div>

### Mp3tag on macOS does not initialize `%_counter%` or `%_max_counter%` inside Actions

[edit I accidentally put a slash mark in these. It was unintended].

(I have heard that Windows does… macOS does not. This is a known limitation of the macOS version.)

Is there any way to fix this?

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [November 14, 2025, 7:06pm UTC](https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134/2 "2025-11-14T19:06:29Z")

</div>

Please note that the real reference to these variables would be  
`%_counter%`  
and  
`%_max_counter%`  
no backslash in the names.  
See also the Mac documentation:

> [@Format Strings and Available Placeholders](https://community.mp3tag.de/t/format-strings-and-available-placeholders/51688):
>
> Mp3tag uses format strings in various of its features to describe the structure of file names and imported data. A format string is built of either standard text (e.g., Music), placeholders (such as %artist%, %title%, ...), or slash characters / that usually denote directory structures. Characters with Special Functionality Some characters have special functionality and need to be treated with extra care. If you experience some unexpected behavior when using format string, check if some of t…

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [November 14, 2025, 10:12pm UTC](https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134/3 "2025-11-14T22:12:51Z")

</div>

Please use

| | |
| --- | --- |
| `%_counter%` | Current selection index of the file (ascending from 1) |
| `%_counter_total%` | Current selection count |

`%_max_counter%` is a dynamic placeholder of the Export feature of the Windows version and unrelated to actions.

---

<div class="post-metadata">

### Author: ![macdilbert](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/b19c9b/32.png) [@macdilbert](https://community.mp3tag.de/u/macdilbert)
#### Post date: [November 15, 2025, 3:47am UTC](https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134/4 "2025-11-15T03:47:19Z")

</div>

Thank you Florian! %\_counter\_total% works for the total counter and solves my problem.

---

<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: [December 15, 2025, 3:48am UTC](https://community.mp3tag.de/t/macos-cannot-initialize-counter-or-max-counter-inside-actions/70134/5 "2025-12-15T03:48:12Z")

</div>

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