In this case, I am trying to write a service that imports a file selected in the Finder to DT and then moves the original file to the trash.
There are already folder actions for this purpose that could be modified, something I just mentioned on another thread.
If the script doesn’t do this, I know I will do it manually every time because it will bother me not to check.
Why don’t you just add a beep
or a notification? They’re easily satisfied by a boolean and unless your sound or notifications are off, they provide as a nice, simple confirmation.
A simple example…
tell application "Finder" to set selectedFiles to (get selection as alias list)
tell application id "DNtp"
repeat with theFile in selectedFiles
try
import POSIX path of theFile to incoming group
beep
on error msg
log message msg
end try
end repeat
end tell
There’s no need to look at DEVONthink for a confirmation then. At the beginning, for sure but once it’s habitual, the only time you look is when you don’t see or hear the notification.
Is there a way to remove it from the sidebar?
No. But you can drag it to a different position in the sidebar, including the bottom.