I am having problems putting a file in each subfolders after creating the subfolders. Using automator to creating the subfolders and then using AppleScript to populate the subfolder with a file.
I select the folder in automator then pass this folder in a variable Myfolder over to AppleScript.
Here is the coded I have used below. Any help would be appreciated
on run {input, parameters}
set MyFolder to input as text #set MyFolder to path to current user folder
display dialog MyFolder
set MyFile to "Macintosh HD:Users:Razzle:Lightroom:Test:_Full Shoot:image.jpg"
display dialog MyFile
tell application "Finder"
set SubFolders to every folder of entire contents of MyFolder
repeat with aFolder in SubFolders
display dialog aFolder as string
duplicate MyFile to aFolder with replacing
end repeat
end tell
end run