Create folder

Hi there,

I‘m pretty new to Keyboard Maestro and I‘m stuck.
I want to create a new folder in the current location.
For that I want to prompt first for a name EXAMPLENAME and then I want to create the following folders:
CurrentLocation/YYYY-DD-MM_Examplename

CurrentLocation/YYYY-DD-MM_Examplename/Photo

CurrentLocation/YYYY-DD-MM_Examplename/Video

CurrentLocation/YYYY-DD-MM_Examplename/ProjectFile

CurrenLocation/YYYY-DD-MM_Examplename/Export

How would I do this?

Keyboard Maestro has an Action called Create New Folder. And this has a setting in its right-hand gear menu to "Create Intermediate" which allows you to create new folders and new subfolders all in one go.

image

Assuming you are in the Finder at the location you want to create the folders the below example should do what you want. (When you say YYYY-DD-MM I assume you mean YYYY-MM-DD as in ISO Date format? If not just swap the position of MM-dd characters in the Magenta Action.)

The Keyboard Maestro Token for the current Finder location is %FinderInsertionLocation% and you can build up your folder structure from that point on.

EXAMPLE Create Folder and Sub Folders.kmmacros (4.5 KB)

Click to Show Image of Macro

2 Likes

Every day, there is something, in plain sight, that is missed. Thank you for pointing this out @Zabobon.
That @peternlewis is special.

KC

4 Likes