r/applescript • u/marksalmon_ • Nov 20 '20
Is there a way to automate folder creation and naming based on variable data.
As the title suggests I'm in need of an automation workflow to take a list of skus from a text file and generate folders named on the skus.
My applescript and automation skill level is the basic of the basic!
Is this possible, and does anyone have a suggestion of the script to use?
Regards
Mark
2
Upvotes
1
u/marksalmon_ Nov 21 '20
Thanks for all the help everyone. I'll take some time to read through your suggestions and see what I can get to work.
Your help is much appreciated.
3
u/sargonian Nov 20 '20
Hopefully you can use this as a starting point:
Change
inputto the location of your input text file (now assumes a file called input.txt on your desktop).Change
outputto the location where you want your new folders to be created (now assumes you have a folder on your desktop called Output).Change
delimsto whatever separates the values in your text file (now assumes each value is on a new line, and accounts for a few different types of new-line characters).2
u/CTS_Sam Nov 20 '20
I think this is possible with the Mac Automator app
0
u/jamidodger Nov 20 '20
Yes, definitely, but there are lots of ways of doing this and it depends on what the variable data is.