Trouble with Import and delete Applescript

I’ve been running an import and delete Folder Action script for a couple of months without any trouble, but suddenly the script seems to be looping as if it is triggered by the recreation of the .DS_Store file.

Code is ```
– Use Folder Actions Setup to add this script to an existing folder
on adding folder items to this_folder after receiving added_items
try
if (count of added_items) is greater than 0 then
tell application id “com.devon-technologies.thinkpro2” to launch
set theGroup to “Select the destination group”
repeat with theItem in added_items
try
set thePath to theItem as text
if thePath does not end with “.download:” then
tell application id “com.devon-technologies.thinkpro2” to import thePath to theGroup
delay 10
tell application “Finder” to delete theItem
end if
end try
end repeat
end if
end try
end adding folder items to


Do any kind applescript gurus have any suggestions?

Does it work again after rebooting the computer? Otherwise you might try to set up the folder action again.

Sorry for the long and ungrateful silence @cgrunenberg - I think the problem is linked to a corrupted profile but haven’t yet had the chance to check it out properly - the same user profile is now getting permissions trouble with other applescripts.