Fastest way to equalize creation dates of two items?

Unfortunately there is no way to copy an item’s creation date and paste it to another. (Please take this as a feature request)

Currently I have to
1- memorize the creation date of first item
2- type manually to second item’s creation date
which is pain in the ass.

Is there a faster way to accomplish this task?

Thanks

Don’t know anything about AppleScript. Care to share the code?

Applescript

display dialog "Select Note to retrieve Creation Date"
tell application id "DNtp" to set theDate to creation date of content record

display dialog "Select Notes to update Creation Date"
tell application id "DNtp"
	set selectedNotes to get selection
	repeat with theNote in selectedNotes
		set creation date of theNote to theDate
	end repeat
end tell

Brilliant! Works like a charm!

I will be happy to donate if you accept it. Thanks a lot!

Actually there is a small problem in here.

Initially I’ve tested AppleScript outside of DEVONthink and it worked flawlessly. But when I try to run it inside of DEVONthink, I can’t select the file after the alert "“Select Note to retrieve Creation Date” or "“Select Notes to update Creation Date”

Can you please help with that?

I didn’t change a single letter of your code. I just created an AppleScript file using your code and then moved it to DEVONthink Script “Toolbar” folder, to be able to run it via DEVONthink UI whenever I need it. But script doesn’t allow me to select the file after the alert.

If I am not clear enough I can record a screencast to demonstrate.

I’m not sure of the exact cause, but we can force the code to run outside of Devonthink
with tell application “System Events” to

tell application "System Events" to display dialog "Select Note to retrieve Creation Date"
tell application "System Events" to display dialog "Select Notes to update Creation Date"

It worked :))

Again, I will happy to pay if you accept donations. Thanks!

You’re Welcome
I’m not into the donations thing
Happy just helping other users, and learning from them

2 Likes