# Exporting Script

**URL:** https://community.mp3tag.de/t/exporting-script/13225
**Category:** Support
**Created:** [March 15, 2012, 9:42pm UTC](https://community.mp3tag.de/t/exporting-script/13225 "2012-03-15T21:42:00Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![randomchance](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ce7236/32.png) [@randomchance](https://community.mp3tag.de/u/randomchance)
#### Post date: [March 15, 2012, 9:42pm UTC](https://community.mp3tag.de/t/exporting-script/13225/1 "2012-03-15T21:42:00Z")

</div>

Hello.

Every Sunday morning, I have to post a couple files up to a website. While retaining the previous 8 weeks in descending order.

I have an export script right now, that generates the audio.xspf file correctly, but it requires a couple manual steps before execution.

1. select latest audio file
2. run Action to generate tags, and correctly name file for web posting
3. sort file names in descending order
4. select all files
5. run the export "xspf generator"

xspf.mte

```
$filename(audio.xspf)<?xml version="1.0" encoding="uft-8"?>
<playlist>
  <tracklist>$loop(a)
    <location>backend/audio/%_filename_ext%</location>
    <annotation>%title% - %artist%</annotation>
  <tracklist>$loopend()
</playlist>

```

Is there an export command that I can add to the xspf generator that will select all files, and sort them by filename in descending order? I want to reduce the chances for error since I'm going to be handing the process off to the operators soon.

Thank you for your help.

---

_[View the full topic](https://community.mp3tag.de/t/exporting-script/13225)._
