I just took one of the included scripts and modified it so it would import a file from a watched folder into a particular group and then delete it. It works, except whatever PDF gets imported the “URL” field will contain the FROM e-mail address of whatever currently selected email I have in Mail. I have no reference to Mail anywhere…
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 "DNtp"
set theGroup to get record with uuid "7E2BA45F-1042-4B94-87EA-87CF02148AC4"
end tell
repeat with theItem in added_items
try
set thePath to theItem as text
if thePath does not end with ".download:" and thePath does not end with ".crdownload:" then
tell application id "DNtp"
import thePath to theGroup
set theRecord to thePath
if exists theRecord then tell application "Finder" to delete theRecord
end tell
end if
end try
end repeat
end if
end try
end adding folder items to