ich musste durch einen Systemfehler meinen DEVONthink komplett neu aufsetzen.
Aktuell nutze ich die Version 3.9.16.
Ich habe alles neu eingerichtet – also ohne alte Regeln oder sonstige Resteinstellungen.
In Apple Mail importiere ich über das Script „Mail Rule – Add attachments to DEVONthink“ meine PDF-Anhänge.
Nun habe ich das Problem, dass diese Dokumente mehrfach importiert werden, ohne dass sie als Duplikate markiert werden.
Hat jemand einen Tipp, wo ich eventuell noch einen Haken setzen oder etwas anpassen muss?
Wenn ich jetz
Viele Dokumente werden tatsächlich als Duplikate erkannt, s. das Symbol am rechten Rand der Namensspalte. Umschalten lässt sich die Darstellung in Einstellungen > Allgemein > Erscheinungsbild
Danke für die schnelle Antwort!
Das habe ich jetzt eingestellt und bekomme es jetzt in Blau angezeigt!
Jetzt aber gleich die nächste frage!
Warum werden die gleichen Dokumente überhaupt erst Importiert.
Ich möchte das ja nicht jedesmal von Hand löschen?
Im Forum habe ich gelesen das DT nur Duplikate an der selben Größe, Wortzahl erkennt, und das haben ja die Importieren Dokument von mir!
Ist DT nicht in der Lage das erst garnicht zu Importieren?
Das Skript importiert alle Anhänge, egal ob Duplikat oder nicht. Entweder müssten Sie das Skript anpassen oder eine Regel verwenden, um Duplikate automatisch zu entfernen.
Ok, das verstehe ich ja, aber ich habe 4 Dokumente Rewe-eBon 4 x gleiche Uhrzeit und gleiche größe!
Und das bei diversen verschiedenen Dokumenten!
Das hatte ich früher nicht?
-- Mail Rule - Add attachments to DEVONthink"-- Created by Christian Grunenberg on Fri May 18 2012."-- Copyright (c) 2012-2020. All rights reserved.
-- Modified by BLUEFROG for Hakon: https://discourse.devontechnologies.com/t/apple-mail-regel-devonthink-skript-importiert-auch-grafiken-statt-nur-dokumente/85408/3"
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
tell application "Mail"
set theFolder to (POSIX path of (path to temporary items))
repeat with theMessage in theMessages
set theSender to the sender of theMessage
repeat with theAttachment in mail attachments of theMessage
try
set theFile to theFolder & (name of theAttachment)
if theFile does not end with ".png" and theFile does not end with ".gif" and theFile does not end with ".jpg" then
--beep 2
tell theAttachment to save in theFile
tell application id "DNtp"
set theAttachmentRecord to import path theFile to incoming group
set unread of theAttachmentRecord to (not theReadFlag)
set URL of theAttachmentRecord to theSender
perform smart rule trigger import event record theAttachmentRecord
end tell
end if
end try
end repeat
end repeat
end tell
end perform mail action with messages
end using terms from
installiert, aber da ging es nur darum das ich keine Bildanhänge importieren wollte!
Bitte sei so nett und poste Code zwischen drei Backticks:
``` code hierher
```
Dann ist er lesbar, kopierbar und lässt sich sogar direkt im Script Editor ausführen. So, wie Du das hier reinstellst, ist es für gar nichts benutzbar.