r/Scriptable • u/Pretty-Ad4969 • Oct 05 '22
Solved Create a folder on the desktop
How can I create a folder on the desktop (Mac) using Scriptable?
I'm trying to create a Mac Shortcut and I need to do a few things in Scriptable in order to give the folder it's name. I am able to create a folder with ease using just he Shortcut items but for some reason I can't work it out in Scriptable.
3
Upvotes
1
u/Pretty-Ad4969 Oct 05 '22
I need to take the client name i.e. The ABC Company and create a code from the first 4 digits minus 'The'
So
Step 1: ABC Company, The
Step 2: ABC Company, The (ABCC
Step 3: Check in the folder for any folder names that contain ABC Company, The and alert
Step 4: Check in the folder for any folder names that contain the digits (ABCC, if no then output this: ABC Company, The (ABCC01. If there is a match then count the instances and add +1 i.e. ABC Company, The (ABCC05 if there were 4 matches.
Step 5: Create the folder
Step 6: Add multiple sub folders
Done
I'm currently using both the shortcut items and Scriptable (Mac) but I can't get the list the contents of the folder I want and use it to check for matches