Capture folder name as variable?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Capture folder name as variable? Thu Mar 04, 2021 3:27 pm • by Trubes
I have a folder full of subfolders containing fonts; and each font folder contains folders for the font type, like this

–"Fonts Folder"
––Font Name
–––"OpenType"
–––"OpenType TT"
–––"WOFF"

I want to reorganize these into subfolders based on font types:

-"New Fonts Folder"
––"OpenType Fonts"
–––FontName
––"OpenType TT Fonts"
–––FontName
––"WOFF"
–––FontName

But I'm not sure how to go about this - e.g., move the "OpenType" folder within the "Advocate" Font Folder, into the OpenType Fonts folder, and rename it from "OpenType" to "Advocate".

All comments appreciated. Thanks in advance!

Edit - I assume I should be looking at the Sort into subfolder action, and maybe the nested folder conditions. But I'm not sure how I would capture the name of the font folder as a variable to rename the font type folder once moved.
Trubes
 
Posts: 3
Joined: Thu Aug 06, 2020 2:03 pm

Re: Capture folder name as variable? Fri Mar 05, 2021 10:52 am • by Mr_Noodle
Instead of moving the folders, how about moving the font files? You will need a subfolder rule (see chapter in the manual).

Don't the font files have different extensions based on type? If so, then you can use that to determine which folder to file them into.
Mr_Noodle
Site Admin
 
Posts: 11240
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support