Hi, I wannt to make an Apllescriptsapp( with Applescript Editor) in which you can make an image to dublicate it with 3 different names ( In the end you have 4 times the same picture with 4 different names). Well, the app should also be able to replace the pics if there were any with the same name before there, but it didn't worked so well right now. Can somebody give me the right code to do that?
Thx
Thx
Code:
property destination : "Dance" as alias -- the folder to copy to
property nameList : {"blabla", "dudada", "gsasy"}
on run -- application double-clicked or script run from the Editor
open (choose file with multiple selections allowed)
end run
on open theseItems -- items dropped onto the application
"replacing:true"
repeat with anItem in theseItems -- go through all the dropped items
repeat with aName in nameList -- go through all the names
tell application "Finder" -- make a copy and rename
set name of (((duplicate anItem to destination) to aName) with replacing)
end tell
"replacing:true"
end repeat
end repeat
end open
Last edited: