script: Format von "modification date"?

Hallo,

ich würde gerne das vorhandene Script “Modification > Creation Date” dahingehend ändern, per Dialog ein Datum einzugeben und dieses als ModificationDate zu speichern. Mein Versuch: set modification date of this_record to “03/07/2010” (wobei das Datum durch eine Variable ersetzt wird) ging leider daneben. Ich denke, dass das Datum so nicht richtig formatiert ist. Wie muß das ModificationDate formatiert werden, um dieses per Script in der Datenbank ändern zu können?

Grüße
Tom

Auf deutschen Systemen sollte u.a. folgendes funktionieren:


set theDate to date ("25.03.2010")
tell application "DEVONthink Pro"
	set theSelection to the selection
	repeat with theRecord in theSelection
		set modification date of theRecord to theDate
	end repeat
end tell

Ich habe ein AppleScript erstellt, welches das Erstellungsdatum aus einem selektierten Text im Dokument setzt. Alternativ kann das Datum über einen Dialog auch manuell eingegeben werden. Weitere Infos und das Script findest du hier http://macblogbyroadrunner.blogspot.com/2011/12/erstellungsdatum-in-devonthink-pro.html.