Wish I knew Applescript better, but in the meantime…
Here’s a Workflow version, though I threw a few of the processes around in the sequence just to make things a bit easier.
You’ll need to make 4 Path Variables and 1 Text Variable. For brevity mine are called “Path”, “Path 1”, “Path 2”, “Path 3” , and “Text”
In the workflow I’m placing the 3 folders in a single folder “Path” to keep things tidy.
[Ask for Text]
What do you want the save folder called?
(require an answer)
[Set Value of Variable]
Variable: “Text”
[New Folder]
Name: “Text”
[Set Value of Variable]
Variable: “Path”
Ignore input from the previous steps
[New Folder]
Name: Small
Where: “Path”
[Set Value of Variable]
Variable: “Path 1”
Ignore input from the previous steps
[New Folder]
Name: Medium
Where: “Path”
[Set Value of Variable]
Variable: “Path 2”
Ignore input from the previous steps
[New Folder]
Name: Large
Where: “Path”
[Set Value of Variable]
Variable: “Path 3”
Ignore input from the previous steps
[Ask for finder items]
Prompt: Choose files you want copied to the save folder & modified:
Type: Files
(allow Multiple Selection)
[Copy Finder Items]
To: “Path 1”
[Copy Finder Items]
To: “Path 2”
[Copy Finder Items]
To: “Path 3”
Ignore input from the previous steps
[Get Value of Variable]
Variable: “Path 1”
[Get Folder Contents]
[Rename Finder Items]
Add text
Add: S
after name
Ignore input from the previous steps
[Get Value of Variable]
Variable: “Path 2”
[Get Folder Contents]
[Rename Finder Items]
Add text
Add: M
after name
Ignore input from the previous steps
[Get Value of Variable]
Variable: “Path 3”
[Get Folder Contents]
[Rename Finder Items]
Add text
Add: L
after name
Probably the best place to put an image resize command action would be just after renaming the files.
To reassemble them into a single folder
Make a new Workflow
[Ask for finder items]
Type: Folders
{This is assuming you left them in the folders that were created in the Workflow above}
[Get folder contents]
(Repeat for each subfolder found)
[Filter Finder Items]
All of the following are true
Kind is not Folder
[Copy Finder Items]
If you want it to make a new folder and ask for a name for it you’d need to make 1 path variable and 1 text variable and basically do the same thing as in the first block of the first work flow.
Hope this helps.