- Joined
- Nov 2, 2016
- Messages
- 1
- Reaction score
- 0
- Points
- 1
Hey guys, I have a script that works great but the problem is, it works only one folder at a time
I need to run it on more folders at a time. Is it possible ?
Thank you guys !
I need to run it on more folders at a time. Is it possible ?
Thank you guys !
Code:
on run {input, parameters}
tell application "Finder"
set dir to container of (item 1 of input) as alias -- get the parent folder
set folderName to name of dir -- get the name of the parent folder
set r to duplicate file "20.jpg" of dir
set the name of r to "zoom_side.jpg"
set r to duplicate file "23.jpg" of dir
set the name of r to "zoom_sole.jpg"
set the name of file "22.jpg" of dir to folderName & "-4.jpg"
set the name of file "20.jpg" of dir to folderName & "-2.jpg"
set the name of file "19.jpg" of dir to folderName & "-1.jpg"
set the name of file "21.jpg" of dir to folderName & "-3.jpg"
set the name of file "23.jpg" of dir to folderName & "-5.jpg"
end tell
return input
end run