# Export Ratings to Textfile

**URL:** <https://community.mp3tag.de/t/export-ratings-to-textfile/16954>\
**Category:** Support\
**Created:** [June 9, 2015, 4:38pm UTC](https://community.mp3tag.de/t/export-ratings-to-textfile/16954 "2015-06-09T16:38:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![max\_124\_cOre](https://community.mp3tag.de/user_avatar/community.mp3tag.de/max_124_core/32/346_2.png) [@max\_124\_cOre](https://community.mp3tag.de/u/max_124_cOre)\
**Post date:** [June 9, 2015, 4:38pm UTC](https://community.mp3tag.de/t/export-ratings-to-textfile/16954/1 "2015-06-09T16:38:27Z")

</div>

Hi there,

I would like to export all tracks which containing Ratings.  
Actually I'm using this loop in my export script.

```
$filename($regexp(%_folderpath%,'[^\\\\]'*\\\\$,)traktor_ratings.txt,utf-8)$loop(%_path%)$if($regexp(%rating%,traktor@native-instruments.de|(.*)|(.*),),%_path%','%rating%,)
$loopend()

```

How I can suppress the script writeing an empty line for each track with no rating?

thanks

---

<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:** [June 9, 2015, 5:59pm UTC](https://community.mp3tag.de/t/export-ratings-to-textfile/16954/2 "2015-06-09T17:59:17Z")

</div>

> [@max-cOre](#):
>
> ...  
> How I can suppress the script writeing an empty line for each track with no rating?
> 
> thanks

What about filtering the files before you use the export?  
%rating% PRESENT

---

<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:** [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/export-ratings-to-textfile/16954/3 "2026-02-09T12:25:42Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


