How to create multiple folders in sequence?

Dimlos

Well-known member
This is a sample macro that creates a new directory in Documents and creates 10 directories in it.
You can change the settings by looking at the created directories and local variables.
 

Attachments

  • Macro.jpg
    Macro.jpg
    602.9 KB · Views: 8
  • Create_directly.macro
    5 KB · Views: 2

Dm114

Well-known member
This is a sample macro that creates a new directory in Documents and creates 10 directories in it.
You can change the settings by looking at the created directories and local variables.
Why don't you use Create folder MD action?
 

Dimlos

Well-known member
Why don't you use Create folder MD action?
Of course, you can also create a macro using the Create folder MD action.
The standard action requires directory permissions.
I used a shell script because it is difficult to convey that just by presenting a macro or screenshot.
 

hsurB

Well-known member
I could only get it to create one folder when I used the create folder option. And then all honesty it seems rather pointless.

What if you used this action in loop with actions like set integer variable +1 each time loop runs and then used this variable as folder's name?
So it would start with setting variable to 1, create folder with that name, then run again - set variable to 2 and created folder with that name and so on.
You could either use fixed amount of runs whrn configuring loop or use compare values condition to run until variable reaches value - 97 in your case
 

Dimlos

Well-known member
If you simply add +1, they won't line up in order, so we use zero padding.
 

Attachments

  • as_is.jpg
    as_is.jpg
    136.9 KB · Views: 5
  • zero_padding.jpg
    zero_padding.jpg
    138 KB · Views: 5
Top