# Moving Only the Specified Track?

**URL:** https://community.mp3tag.de/t/moving-only-the-specified-track/67142
**Category:** Mac
**Created:** [January 14, 2025, 12:56pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142 "2025-01-14T12:56:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![josephzitt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/josephzitt/32/9533_2.png) [@josephzitt](https://community.mp3tag.de/u/josephzitt)
#### Post date: [January 14, 2025, 12:56pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142/1 "2025-01-14T12:56:15Z")

</div>

By default, when I use an action to move a file into a new directory, it moves everything in the file's current directory with it. In most cases, this is good. However, such as when I'm renaming and moving a single MP3 from my Downloads directory, this is kind of catastrophic moving everything else that happens to also be in the directory with it.

Is there something that I can put into an action to tell it to move _only_ the file or files listed in the MP3TAG main pane?

---

<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: [January 14, 2025, 1:32pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142/2 "2025-01-14T13:32:15Z")

</div>

> [@josephzitt](#):
>
> when I use an action to move a file

Which action is that? Could you show us the parameters?  
Also, see the documentation:

> [@Rename Files and Import Tags from Files](https://community.mp3tag.de/t/rename-files-and-import-tags-from-files/51720):
>
> Mp3tag provides a variety of possibilities to get tag information from parts of the filename or to rename files based on the information stored in the tag of a file. The base concept behind all converters in Mp3tag is the format string, which describes a pattern or template of a filename. A format string consists of any characters and predefined placeholders or scripting functions. Every placeholder begins with the percent sign %, followed by a tag field name and ends with the percent sign. …

and in general: if you want to move folders, rename the folder (\_DIRECTORY) , if you want to move single files, rename only the file (\_FILENAME).

---

<div class="post-metadata">

### Author: ![josephzitt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/josephzitt/32/9533_2.png) [@josephzitt](https://community.mp3tag.de/u/josephzitt)
#### Post date: [January 14, 2025, 3:03pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142/3 "2025-01-14T15:03:17Z")

</div>

Ah, a good point. Can I put the new directory into the \_FILENAME field? I wouldn't have thought that it could accept a directory path too.

The Actions that I have created do set the \_DIRECTORY field, so that explains that. As with so many things, it's kind of obvious after you learn it, but not necessarily before.

---

<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: [January 14, 2025, 5:35pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142/4 "2025-01-14T17:35:16Z")

</div>

You can enter a fully qualified filename which means that it may feature the full path including volume.

---

<div class="post-metadata">

### Author: ![josephzitt](https://community.mp3tag.de/user_avatar/community.mp3tag.de/josephzitt/32/9533_2.png) [@josephzitt](https://community.mp3tag.de/u/josephzitt)
#### Post date: [January 14, 2025, 5:59pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142/5 "2025-01-14T17:59:46Z")

</div>

Thanks! I created this action, "Move Files (Single Track), for the Field \_FILENAME:

`/Volumes/PublicXl/data/media/music/$if2(%ALBUMARTISTSORT%,%ARTIST%)/%YEAR% %TITLE%/01 - %TITLE%`

which now does it beautifully.

I subscribe to Peter Gabriel's Bandcamp, which releases a lot of single tracks, so this will be quite useful.

---

<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 13, 2025, 5:59pm UTC](https://community.mp3tag.de/t/moving-only-the-specified-track/67142/6 "2025-02-13T17:59:55Z")

</div>

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