# Moving graphics files with music

**URL:** https://community.mp3tag.de/t/moving-graphics-files-with-music/62455
**Category:** Mac
**Created:** [October 18, 2023, 6:09pm UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455 "2023-10-18T18:09:10Z")
**Posts on this page:** 8
**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: [October 18, 2023, 6:09pm UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/1 "2023-10-18T18:09:10Z")

</div>

I know that this is possible. In fact, the developer graciously tried to explain this to me, but I just don't quite understand it. I have read the documentation, but something is escaping me.

I have "Convert \> Tag to Filename" moving the files from their current location to the proper location on my music drive. I would like to automatically move all \*.jpg, \*,png, and \*.pdf files that are currently in the folder with them to the new location.

Could someone describe or show me a straightforward way to do this?

I'm using Mp3tag for Mac 1.8.7

---

<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: [October 18, 2023, 6:56pm UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/5 "2023-10-18T18:56:46Z")

</div>

What I think I wrote before is that Mp3tag has an action feature to compose reusable workflows. One of the actions is **Format tag field** , which fills fields or renames files based on other fields content or fixed text.

This action also offers `_DIRECTORY` and `_FILENAME` as fields, where the former really renames the directory of the files. This means, that other files like PDF, JPG, & PNG files in the folder would also be moved to the new folder.

You can try this action type via **Actions → Quick Actions → Format tag field** and if you are happy with your experiments, you could create via **Actions → Actions** an action group "Move Files" with two actions **Format tag field** one for `_DIRECTORY` (which renames the containing folder) and one for `_FILENAME` (which renames the files).

 ![image](https://community.mp3tag.de/uploads/default/original/2X/5/54a18adaac7a1e0036fc26d93966cf22788a4b0e.jpeg)

---

<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: [October 18, 2023, 7:23pm UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/6 "2023-10-18T19:23:40Z")

</div>

Thanks! I tried creating the new Action Group, and it worked -- except that I see that it's inserting an extra directory and putting the files into that:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/a/aac7e94f99034c79dc494574d27d67fb4826fead.png)

This is the Action Group:

 ![image](https://community.mp3tag.de/uploads/default/original/2X/0/0947e19a486c82aa413790c9b4f8a65d9fd8cd05.png)

---

<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: [October 18, 2023, 7:49pm UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/7 "2023-10-18T19:49:30Z")

</div>

It took me some time to find a possible cause for the extra trailing `_` directory, but I think you might have copied a linebreak when pasting the format string for the **Format tag field** action.

Can you double-check the end of the format string and remove any extra characters after the trailing `/`

---

<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: [October 18, 2023, 8:22pm UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/8 "2023-10-18T20:22:22Z")

</div>

Yes! There was indeed a linebreak at the end.

One more issue: it doesn't look like it is renaming the files as I expect. As I understand it, the filename as indication in the action should have the track number, a space, and the track name. But, as in the screenshot of the folder above it, in this case it left the filenames as they had been originally, with a space-dash-space between the number and the name. In another test, it left it as it had been, with a dot after the number. Could something in how I set the actions be keeping the one for the \_FILENAME from working?

ADDED: I just tried the string for the \_FILENAME in a Convert \> Tag - Filename and it worked OK there.

---

<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: [October 19, 2023, 4:51am UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/9 "2023-10-19T04:51:08Z")

</div>

> [@josephzitt](#):
>
> Could something in how I set the actions be keeping the one for the \_FILENAME from working?

Yes, the format string is missing the closing `%` at `%title%`

---

<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: [October 19, 2023, 6:06am UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/10 "2023-10-19T06:06:24Z")

</div>

Thanks. That solved it. (More proof that "With enough eyeballs, all bugs are shallow.")

---

<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: [November 18, 2023, 6:07am UTC](https://community.mp3tag.de/t/moving-graphics-files-with-music/62455/11 "2023-11-18T06:07:00Z")

</div>

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