I need to get information from my DEVONthink database from within my shell scripts and I’m running into an error.
Weirdly, this works:
do shell script "osascript -e 'tell application id \"DNtp\" to return path of (get record with uuid \"745B87E0-3845-4592-ABF8-6D66D2E27404\")'"
But the same script, run in Terminal, produces a syntax error:
osascript -e 'tell application id \"DNtp\" to return path of (get record with uuid \"745B87E0-3845-4592-ABF8-6D66D2E27404\")'
> 20:21: syntax error: Expected expression, etc. but found unknown token. (-2741)
What am I missing?..