DEVONthink shows the beachball of doom, after two minutes “DEVONthink got an error: AppleEvent timed out” is returned to the script runner, but DEVONthink does not recover.
Note that if the markdown file is selected, the script runs without a problem.
I don’t know if this is related, but it could be: I have tried making YAML files editable within DEVONthink using the AdditionalPlainTextExtensions hidden preference. According to this, they should be editable:
You might want to check what the first parent of your record is – if it’s the root of the database, you can’t rename it.
And perhaps use selected records instead of selection (that’s just a general suggestion, not related to this script directly).
Good point, thanks. The script that I discovered this problem in originally was getting the group from its path, but I simplified things in order to check that the problem was reproducible.
It’s not the root in this case, but thanks for the suggestion.