Applescript to return name of new file added to folder
Solution 1:
This should work for you
on adding folder items to theFolder after receiving theNewItems
delay 20 -- ALLOW MULTIPLES TO BE ADDED BEFORE PROCESSING - OPTIONAL
set filesAdded to {}
tell application "Finder" to set folderName to name of folder theFolder
repeat with i from 1 to count of theNewItems
set thisItem to item i of theNewItems
tell application "Finder"
set FileName to name of thisItem
set end of filesAdded to (FileName & linefeed)
end tell
end repeat
activate
display alert "New Items Added!" message (("These Files Have Been Added To " & theFolder) & linefeed & linefeed & filesAdded as string)
end adding folder items to