Creating action foldername to album title

Hi all,

I've been trying to figure out how to create an action item to take the folder name and add it to the album field. I've been trying to search on actions but haven't gotten close (that I know of). I am using the latest version 2.84

Does anyone have anything like this already or can point me in the right direction so I can create it?

Thanks for reading this far


I figured this out using a post from JJ Johnson

Use a 'Format value' action:

Action type: Format value
Field: ALBUM
Format string: %_directory%