on adding folder items to thisFolder after receiving theItems
repeat with aitem in theItems
set aitem to aitem as text
tell me to activate
display dialog aitem
end repeat
end adding folder items to
This works. But I want it to work even when a file is added to sub-folder in the folder to which this folder action is attached.