I played around a bit with the Daily Backup Archive script to automatize it and it did work quite well with one exception: The script does only affect the database selected in the moment he script gets active.
When I am in my main database the script saves it like intended. But when I happen to have selected, say, the Global Inbox, then the Global Inbox is saved. Which is not intended.
Or to put in in Apple Script: How can I change
set this_database to current database
set this_database to *database X*
I tried its name and its x-devonthink-item link but neither worked. Which might be due to wrong syntax.
Is it possible at all to select a specific database per Apple Script?