Hello,
I am stuck … I need the script to create folders from an excel but also add sub and sub sub folders to each of the folder created in from the excel data. The sub and sub sub folder names are same for all the folders that need to be created
Folder 1
–Sub Folder 1
–Sub Folder 2
— Sub Sub Folder 2.1
----Sub Sub Sub Folder 2.1.1
----Sub Sub Sub Folder 2.1.2
----Sub Sub Sub Folder 2.1.3
— Sub Sub Folder 2.2
---- Sub Sub Sub Folder 2.1.1
–Sub Folder 3
— Sub Sub Sub Folder 3.1.1
–Sub Folder 4
— Sub Sub Sub Folder 4.1.1
This is how far I got to … the script is not creating sub or sub sub folders and error pops up that the folder already exists.
set _excel to choose file
set _folder to choose folder
tell application “Microsoft Excel”
open _excel
set theNames to value of range “A1:c6”
close active workbook
end tell
repeat with aName in theNames
set fullName to item 1 of aName & space & item 2 of aName & space & item 3 of aName
tell application “Finder”
tell application “Finder” to make new folder at _folder with properties {name:fullName}
– set thisFolder to make new folder at fullName with properties {name:“Copy”}
make new folder at fullName with properties {name:“Copy”}
make new folder at _folder with properties {name:“Layout”}
set subFolder1 to make new folder at loc2 with properties {name:“Links”}
set anotherSubFolder to make new folder at subFolder1 with properties {name:“Final”}
set anotherSubFolder1 to make new folder at subFolder1 with properties {name:“Original”}
set anotherSubFolder4 to make new folder at subFolder1 with properties {name:“Working”}
make new folder at loc2 with properties {name:“Mocks”}
set anotherSubFolder3 to make new folder at subFolder2 with properties {name:“Cover Jpegs”}
make new folder at _folder with properties {name:“Misc”}
make new folder at _folder with properties {name:“PDF”}
make new folder at loc3 with properties {name:“Email for Approval”}
make new folder at loc3 with properties {name:“Press PDF”}
make new folder at loc3 with properties {name:“Proof PDF”}
end tell
end repeat