I’m doing this with on big sur and can not upgrade the os for other hardware n software reasons.
I am trying to make some automated folder creation scripts.
Everyday I have to make a folder on 2 separate drives with the same info and empty subfolders: DAY_001_day_month_year_name
***the next day it will have to make the day one increment higher so DAY_002_day_month_year_name
and so on.
I started doing this with automator and then realized there’s no wild cards and its gonna need some apple script or bash.
Part of the problem is that only one of the destinations is there everyday- the RAID drive
There are 6 other drives used for the duplicate version. Gofer_01 through 6 and they get used randomly.
and sent away for backup.
Objective: use automator plus some script or just a standalone script to create a workflow or app that will-
Find the RAID, identify the most recent folder DAY_004… and make a DAY_005…
then
-Look for one of 6 external hard drives and if it finds any of them
-make a copy of the one it just made in the RAID.
I am trying to use a combination of automator and bash or apple script I have scraped from youtube videos and other repositories.
-not sure the right combination of these since I want to run the script through streamdeck
Im kinda stuck now with some code and automator. see image.
tried some script but it kept giving me errors
trying to add an image here
All help appreciated.