Import & Delete.applescript anpassen. Global => DB

Hallo nochmals.

Kann mir bitte jemand die Hand führen und mir sagen wie ich das nachfolgende Script von Christian so abändere, dass die Dateien nicht im globalen Eingangsordner landen, sondern in dem Eingangsordner einer Datenbank namens ‘DEVONdb’!? :blush:


-- DEVONthink - Import & Delete.applescript
-- Created by Christian Grunenberg on Fri Mar 26 2010.
-- Copyright (c) 2010. All rights reserved.

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
			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"
							set theRecord to import thePath to incoming group
							if exists theRecord then tell application "Finder" to delete theItem
						end tell
					end if
				end try
			end repeat
		end if
	end try
end adding folder items to


Da ich vorhabe später nur mit einer Datenbank zu arbeiten, statt für meine Frau und mich jeweils eine getrennte zu verwalten, möchte ich mir das umkopieren der Eingänge sparen. :unamused:

Falls das nicht gehen sollte, gibt es dann eine Möglichkeit den Inhalt des globalen Eingangs automatisch in den Eingang der Datenbank zu kopieren? Mir ist nämlich gerade aufgefallen, das im globalen Eingang das automatische Einordnen wohl nicht funktioniert. Kopiere ich aber den Inhalt in den DB Eingang so funktioniert die automatische Zuordnung merkwürdiger Weise! Ich muss dazu aber sagen, dass ich aktuell nur mit knapp 30 Testbelegen arbeite. Vielleicht ist das zu wenig?

Ich danke euch.

Efty

Einfach die Zeile…


	set theRecord to import thePath to incoming group

…durch…


	set theGroup to incoming group of database named "DEVONdb"
	set theRecord to import thePath to theGroup

…ersetzen.