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
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”
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.