Create Standard Folder Hierarchy

Hi all,

I’m struggling with a script I’m trying to create to standardise job folder hierarchy from supplied elements.

The supplied elements are always supplied in a folder, example below:

“15046 - FILENAME - THE SUPPLIER”

And loose within this folder can exist one, two or several files in differing format types.
The steps I’ve tried (and failed) to replicate in code are below in plain English:

Once the above folder and its contents are dropped on to the Applescript Application I want it to move the folder and entire contents to a temporary folder location:

•	"Dave's Mac:Volumes:TamworthMacRAID:LIVE ARTWORK: •••• C R E A T E D  F O L D E R S  H E R E ••••:"

Then once here I require a sub folder created that sits in the original folder “15046 - FILENAME - THE SUPPLIER” called:

“CUTTER SUPPLIED”

Then I want the entire contents of the original folder “15046 - FILENAME - THE SUPPLIER” to be moved (but only the contents, not the original folder too) in to this newly created “CUTTER SUPPLIED” sub folder.

Then I want another sub folder created that also sits in the original folder, named as the original folder, but prefixed with “ARTWORK - “, so in this instance the resulting path would be:

•	"Dave's Mac:Volumes:TamworthMacRAID:LIVE ARTWORK: •••• C R E A T E D  F O L D E R S  H E R E ••••:15046 - FILENAME - THE SUPPLIER:ARTWORK - 15046 - FILENAME - THE SUPPLIER:”
•	

BUT this folder needs the words after the third hyphen (“THE SUPPLIER”) to be abbreviated, so a dialog would need to be shown giving the user the option to input the abbreviation in a dialog, resulting in the new file name (in this instance) being:

•	"Dave's Mac:Volumes:TamworthMacRAID:LIVE ARTWORK: •••• C R E A T E D  F O L D E R S  H E R E ••••:15046 - FILENAME - THE SUPPLIER:ARTWORK - 15046 - FILENAME - TS:”

— if this causes issues with the script or is too complex I am happy to omit it and rename the folder manually.