Move docs erroneously placed in one database to correct one?

DId I make this up or did I read somewhere on these forums how to use an Applescript to move a bunch of docs erroneously placed in one database (via Services) to the correct one. [That’s because the wrong database was open.]

Yeah, I know I can export one by one then re-import, but that’s time-consuming.

I don’t think there’s an easier way right now than ex- and importing.

Note that you can select multiple (even non-contiguous) documents in a database and export them to a new folder in the Finder. Then import ALL of the contents of that folder into the other database.

Thanks, Bill and Christian.