Hi
I am at a loss of why this folder action does not work. When tested with out the handler it works fine.
on adding folder items to this_folder after receiving this_file
tell application "System Events"
set fileName to name of (get the properties of this_file) as string
display dialog fileName
end tell
end adding folder items to
Regards
Hi, weedinner.
The ‘after receiving’ parameter will be a list of the items received, so it won’t have any System Events properties.
on adding folder items to this_folder after receiving these_items
repeat with this_item in these_items
tell application "System Events"
set fileName to name of this_item
display dialog fileName
end tell
end repeat
end adding folder items to
Folder actions must be enabled, of course, and the script attached to a folder. The script should itself be in a folder called “Folder Action Scripts” in your “Scripts” folder.