Data > New From Template > Bookends imports only to root of database

In my ongoing effort to improve DT3’s ability to extract from Bookends all the information that is needed in my profession (see my earlier posts on this subject) I’ve figured out that, with modifications, the “New From Template > Bookends” import solution should be the place to make this happen. Having opened the template in Script Editor I can see where the current version skips fields from BE that I need (Editor, Book Title, Publisher, etc.); that’s easily changed. My AppleScript skills are limited but I can see where to make the changes by adding the additional fields.

But I’ve run into another problem. If I try to import the records into a group within a DT database, the script imports only the first selected record into the group but it imports the rest of them at the root level of the database. If I try importing to a group the first is named “Reference” and all the rest are named “[Author] : [Title]”. If I import at the root level the first document is correctly named.

So there seems to be a problem with the way the script or DT is handling the jump back and forth between DT and BE during the importing process. (The destination of the import is redirected to the root?) I’m not sure if this is a scripting problem or a bug in DT. Any help with that would be appreciated.

The New From Template > Education > Reference (from Bookends) template?

Removing the following code from the template should fix this:

		-- Open the record in a separate window for editing if necessary
		delay 0.4
		if not (exists think window 1) or content record of think window 1 is not equal to theRecord then
			set theWindow to open window for record theRecord
			set theWindow to think window 1
		end if