# Splitting the directory using actions

**URL:** https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950
**Category:** Support
**Created:** [February 4, 2023, 1:23pm UTC](https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950 "2023-02-04T13:23:55Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Everso](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@Everso](https://community.mp3tag.de/u/Everso)
#### Post date: [February 4, 2023, 1:23pm UTC](https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950/1 "2023-02-04T13:23:55Z")

</div>

Hi all,

I am just starting to use actions and have hit a bit of a roadblock. I want to split a directory into 2 parts and apply each part to a different field. The split is delimited by " - " in the file name.

e.g.

file name would be "album bit here - title bit here.mp3"  
So I want "album bit here" to become the album - "title bit here" to become the title.

This might not sound sensible but this is for a series of audiobooks and it does work for me. I can do this with a manual "file name to tag" and the following

`%album% - %title%\%dummy%`

but I can't see a wat to replicate this as an action step (or more likly 2 actions steps).

Anyone got any ideas?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 4, 2023, 1:31pm UTC](https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950/2 "2023-02-04T13:31:04Z")

</div>

You could try to use the action "Guess Values":

> **[Guess Values – Mp3tag Documentation](https://docs.mp3tag.de/actions/guess/)**
>
> Documentation on the Guess Value action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

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

Source format:  
`%_FILENAME%`  
Guessing pattern  
`%ALBUM% - %TITLE%`

Please be aware that this action will overwrite whatever you currently have inside ALBUM and TITLE.

---

<div class="post-metadata">

### Author: ![Everso](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/9de053/32.png) [@Everso](https://community.mp3tag.de/u/Everso)
#### Post date: [February 4, 2023, 2:41pm UTC](https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950/3 "2023-02-04T14:41:45Z")

</div>

Perfect... Works like a charm.

Now all I need is to get a auto renumber working ... apprently that is a know issue for actions ☹ Looks like I have to do them one forlder at a time

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 4, 2023, 2:48pm UTC](https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950/4 "2023-02-04T14:48:29Z")

</div>

> [@Everso](#):
>
> Looks like I have to do them one forlder at a time

The [new Auto-Numbering Wizard](https://docs.mp3tag.de/auto-numbering/) was [improved](https://community.mp3tag.de/t/mp3tag-v3-19-released/59813#extended-auto-numbering-wizard-2) in the last Mp3tag version v3.19.  
Maybe this can help you?

If you have questions about the GUI Auto-Numbering Wizard CTRL+K please create a new topic.

---

<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: [March 6, 2023, 2:49pm UTC](https://community.mp3tag.de/t/splitting-the-directory-using-actions/59950/5 "2023-03-06T14:49:21Z")

</div>

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