Display Random Note not working in dt4

I have local smart group with reminder to execute external script, Display Random Note. It works in dt3 but not in dt4.

If I switch back to dt3, it works. Once I switch to dt4, it got error:

What do I need to change to have it working in dt4?

Tony, check to see where the script is located - it probably still is in “~/Library/Application Scripts/com.devon-technologies.think3” in some of the subfolders.
For DT4 it needs to be in “”~/Library/Application Scripts/com.devon-technologies.think" (again, in some subfolder".

Note “think”, versus the older “think3”

Though the log message makes me ponder…

Thanks. I have reinstalled the script in dt4. And I have also make an alias to the Reminder folder. The script is in the right folder and was executed, but with error.

There is 1 line of code difference between dt3 script and dt4 script.
dt3: else if {type, class} of theSource contains smart group then
dt4: else if {type, class} of theSource contains «class DTsg» then

I have changed that line of code of dt4 script back to dt3. And it works.

I also noticed there are quite a lot of changes in the Dictionary. The record class and properties of record are different between dt3 and dt4.

I am not sure if I am making the right changes. But at least it works for now.

You should not be running DEVONthink 3 and 4 on the same account. This has already been discussed at length.

1 Like